RTEMS | bsps/arm/beagle: Fix GPIO output clear bug (!1469)
Yang Zhang (@Chloe)
gitlab at rtems.org
Thu Sep 3 07:59:15 UTC 2026
Yang Zhang created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1469
Project:Branches: Chloe/rtems:fix-beagle-gpio-clear to rtems/rtos/rtems:main
Author: Yang Zhang
## Summary
bsps/arm/beagle: Fix GPIO output clear bug
AM335X_GPIO_CLEARDATAOUT and AM335X_GPIO_SETDATAOUT are write-1-to-clear
and write-1-to-set registers. Reading either register returns the current
GPIO_DATAOUT state.
Using mmio_set() performed a read-modify-write on these registers. For
CLEARDATAOUT, this wrote 1s for all currently active output pins, causing
all set pins in the bank to be unintentionally cleared whenever any single
pin was cleared.
Fix this by using mmio_write() instead of mmio_set() to write only the
target pin mask directly without reading back the current output state.
Fixes #5235.
## Generative AI
<!-- If you have used AI please use the "AI Contribution" template otherwise leave this blank see our fulls statement at https://www.rtems.org/generative-ai/-->
<!-- Default settings, if it is a dropdown it will set after submission -->
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1469
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/sent_notifications/5-8gjccu3zqsg8nt6tny7bo0920-1d/unsubscribe | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | Help: https://gitlab.rtems.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260903/623b8c93/attachment-0001.htm>
More information about the bugs
mailing list