Skip to content

Conversation

@github-actions
Copy link

@github-actions github-actions bot commented Dec 16, 2025

Backport 726e7b6~2..726e7b6 from #100187.

Fixes #101151

The PM action saves the interrupts enabled using a
global variable called usart_intenset. The problem is
when you have multiple uart instances that have different
configurations, when entering/exiting from a power level,
only one configuration is saved and will be applied to all
uart instances when exiting from a power level. We need to
keep this setting individual for each instance. To do this,
usart_intenset was added as a new element to mcux_flexcomm_data
structure. In this way, each uart instance will keep/restore
each own setting.

Signed-off-by: Missael Maciel <[email protected]>
(cherry picked from commit a84e0b5)
Removed usart_intenset attribute from conditional compilation
in mcux_flexcomm_data structure since this parameter needs to
be saved/restored independently if the interrupts are enabled
or not based on the PR feedback

Signed-off-by: Missael Maciel <[email protected]>
(cherry picked from commit 726e7b6)
@github-actions github-actions bot added the Backport Backport PR and backport failure issues label Dec 16, 2025
@github-project-automation github-project-automation bot moved this to To do in Backports Dec 16, 2025
@JarmouniA
Copy link
Contributor

@DerekSnell Needs an accompanying bug issue.

@JarmouniA JarmouniA closed this Dec 19, 2025
@github-project-automation github-project-automation bot moved this from To do to Done in Backports Dec 19, 2025
@JarmouniA JarmouniA reopened this Dec 19, 2025
@github-project-automation github-project-automation bot moved this from Done to Needs more info in Backports Dec 19, 2025
@JarmouniA JarmouniA added this to the v4.3.1 milestone Dec 19, 2025
@zephyrbot zephyrbot added platform: NXP NXP area: UART Universal Asynchronous Receiver-Transmitter labels Dec 19, 2025
@sonarqubecloud
Copy link

@DerekSnell
Copy link
Contributor

thanks @JarmouniA , Issue is linked now and CI passes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: UART Universal Asynchronous Receiver-Transmitter Backport Backport PR and backport failure issues platform: NXP NXP

Projects

Status: Needs more info

Development

Successfully merging this pull request may close these issues.

drivers: serial: NXP uart_mcux_flexcomm: instance interrupt config not saved during PM_DEVICE_ACTION_TURN_OFF

6 participants