Describe the bug
Incorrect device pointer passed to API wrapper, resulting in undefined behavior.
Regression
Steps to reproduce
- Build for the nrf54h20dk/nrf54h20/cpuapp with can120 enabled in the devicetree and -DCONFIG_CAN=y
- Flash and debug
- Observe the
configure_hsfll function in can_nrf.c pass the dev (CAN device) to clock_control_get_rate() instead of the AUXPLL device (config->auxpll)
- Observe call flow jump into the API implementation in
can_nrf.c, and return garbage
Relevant log output
Logs look as expected, the error is "invisible" if not debugging, the behavior is undefined, any changes to the driver, or build options, could cause hard faults.
Impact
Major – Severely degrades functionality; workaround is difficult or unavailable.
Environment
Linux, Zephyr Release 4.2
Additional Context
Fix has already been applied on main, post release 4.2
Describe the bug
Incorrect device pointer passed to API wrapper, resulting in undefined behavior.
Regression
Steps to reproduce
configure_hsfllfunction incan_nrf.cpass the dev (CAN device) toclock_control_get_rate()instead of the AUXPLL device (config->auxpll)can_nrf.c, and return garbageRelevant log output
Impact
Major – Severely degrades functionality; workaround is difficult or unavailable.
Environment
Linux, Zephyr Release 4.2
Additional Context
Fix has already been applied on main, post release 4.2