Skip to content
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

Wrong clock assigned #48367

Closed
JeroenReeskamp opened this issue Jul 27, 2022 · 0 comments · Fixed by #49196
Closed

Wrong clock assigned #48367

JeroenReeskamp opened this issue Jul 27, 2022 · 0 comments · Fixed by #49196
Assignees
Labels
bug The issue is a bug, or the PR is fixing a bug platform: NXP NXP priority: low Low impact/importance bug

Comments

@JeroenReeskamp
Copy link
Contributor

case MCUX_HS_SPI_CLK:
#if defined(SYSCON_HSLSPICLKSEL_SEL_MASK)
*rate = CLOCK_GetHsLspiClkFreq();
#else
*rate = CLOCK_GetFlexCommClkFreq(14);
#endif
case MCUX_HS_SPI1_CLK:
*rate = CLOCK_GetFlexCommClkFreq(16);
break;

In the case of MCUX_HS_SPI_CLK the switch always falls trough and you end up with MCUX_HS_SPI1_CLK, is this intentional? Or should a break be added after line 100?

@galak galak added the platform: NXP NXP label Jul 28, 2022
@dleach02 dleach02 added bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug labels Aug 4, 2022
decsny added a commit to nxp-zephyr/zephyr that referenced this issue Aug 17, 2022
In clock_control_mcux_syscon.c,
add a break statement.

Fixes zephyrproject-rtos#48367

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
galak pushed a commit that referenced this issue Aug 17, 2022
In clock_control_mcux_syscon.c,
add a break statement.

Fixes #48367

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug platform: NXP NXP priority: low Low impact/importance bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants