Skip to content

Conversation

mjchen0
Copy link
Contributor

@mjchen0 mjchen0 commented May 29, 2025

Change nxp_imx_mu_send() to return a negative errno value on error.

The fsl_mu function MU_TriggerInterrupts() returns either kStatus_Success or kStatus_Fail, which have the value 0 or 1, respectively. kStatus_Fail should not be returned to the upper levels, which expect negative values for errors, so add a check for the return value of
MU_TriggerInterrupts() and return an errno value on error.

@mjchen0 mjchen0 force-pushed the mbox_nxp_imx_mu branch 2 times, most recently from f33fbbc to 0ff229f Compare June 2, 2025 20:41
decsny
decsny previously approved these changes Jun 3, 2025
@dleach02
Copy link
Member

dleach02 commented Jun 6, 2025

@mjchen0 please rebase your PR to pull in the CI regression fix you are seeing.

Change nxp_imx_mu_send() to return a negative errno value
on error.

The fsl_mu function MU_TriggerInterrupts() returns either
kStatus_Success or kStatus_Fail, which have the value 0
or 1, respectively. kStatus_Fail should not be returned
to the upper levels, which expect negative values for
errors, so add a check for the return value of
MU_TriggerInterrupts() and return an errno value on error.

Signed-off-by: Mike J. Chen <[email protected]>
@mjchen0 mjchen0 force-pushed the mbox_nxp_imx_mu branch from f756ebb to 763f2ff Compare June 6, 2025 17:42
Copy link

sonarqubecloud bot commented Jun 6, 2025

@kartben kartben merged commit 2797507 into zephyrproject-rtos:main Jun 10, 2025
26 checks passed
@mjchen0 mjchen0 deleted the mbox_nxp_imx_mu branch June 10, 2025 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: mbox platform: NXP Drivers NXP Semiconductors, drivers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants