Skip to content

mspm33 driver fixes and increase test coverage#18

Merged
padmaraghunathan90 merged 4 commits intodev_mspm33from
feature/mspm33-driver-fixes
Mar 6, 2026
Merged

mspm33 driver fixes and increase test coverage#18
padmaraghunathan90 merged 4 commits intodev_mspm33from
feature/mspm33-driver-fixes

Conversation

@Aman-Lachhiramka-ti
Copy link
Collaborator

Summary

  • Fix NULL pointer dereference in MSP GPIO port_get_direction that caused
    BUS FAULT when gpio_pin_is_input()/gpio_pin_is_output() was called
  • Fix GPIO_DISCONNECTED not clearing IOMUX INENA, and use per-pin PINCM
    check for accurate input direction reporting
  • Fix MSP UART irq_is_pending to check actual TX/RX ready state instead
    of stale interrupt index
  • Add lp_mspm33c321a GPIO loopback overlay (PB20/PB21) for gpio_basic_api
  • Add lp_mspm33c321a board conf enabling GPIO_GET_DIRECTION test

Add NULL guards in port_get_direction, clear INENA on
GPIO_DISCONNECTED, and use per-pin PINCM check for accurate
input direction reporting.

Signed-off-by: Aman Lachhiramka <a-lachhiramka@ti.com>
Check actual TX/RX ready state instead of stale interrupt
index to avoid falsely reporting pending when no data is
available.

Signed-off-by: Aman Lachhiramka <a-lachhiramka@ti.com>
Add loopback overlay with PB20 as out-gpios and PB21 as in-gpios
for the 2-pin GPIO test on lp_mspm33c321a.

Signed-off-by: Aman Lachhiramka <a-lachhiramka@ti.com>
Enable GPIO_GET_CONFIG and GPIO_GET_DIRECTION for the
get_direction test on lp_mspm33c321a.

Signed-off-by: Aman Lachhiramka <a-lachhiramka@ti.com>
@padmaraghunathan90 padmaraghunathan90 merged commit 845c339 into dev_mspm33 Mar 6, 2026
11 of 12 checks passed
@Aman-Lachhiramka-ti Aman-Lachhiramka-ti deleted the feature/mspm33-driver-fixes branch March 6, 2026 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants