Skip to content

drivers: dma_mcux_lpc: fix bug using INPUTMUX #90830

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

mjchen0
Copy link
Contributor

@mjchen0 mjchen0 commented May 29, 2025

The typical way of calling INPUTMUX_AttachSignal() is to bracket it around INPUTMUX_Init() and INPUTMUX_Deinit() calls because we can reduce power consumption by not keeping the interface powered when not changing INPUTMUX.

This driver was violating that convention, which caused it to not coexist well with other code that followed the usage convention because the INPUTMUX might be initialized or not depending on execution order with the other modules.

The typical way of calling INPUTMUX_AttachSignal() is to
bracket it around INPUTMUX_Init() and INPUTMUX_Deinit()
calls because we can reduce power consumption by not
keeping the interface powered when not changing INPUTMUX.

This driver was violating that convention, which caused
it to not coexist well with other code that followed the
usage convention because the INPUTMUX might be initialized
or not depending on execution order with the other modules.

Signed-off-by: Mike J. Chen <[email protected]>
Copy link

Copy link
Member

@decsny decsny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@kartben kartben merged commit 9564a5e into zephyrproject-rtos:main Jun 6, 2025
27 checks passed
@mjchen0 mjchen0 deleted the dma_mcux_lpc_inputmux_bugfix branch June 11, 2025 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: DMA Direct Memory Access platform: NXP Drivers NXP Semiconductors, drivers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants