From 43dafab4be6178c4713136fdc7b73458a9b9162b Mon Sep 17 00:00:00 2001 From: Nikodem Kastelik Date: Wed, 22 Jan 2025 08:26:36 +0100 Subject: [PATCH] [nrf fromtree] drivers: clock_control: nrf: ignore XOTUNE-related events for now New events from nrfx_clock driver are not utilized for now by the clock_control, so should be ignored to avoid assertion. Signed-off-by: Nikodem Kastelik (cherry picked from commit 2692f167576b74c0a9f13309d5a55f88a93f2cc6) --- drivers/clock_control/clock_control_nrf.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/clock_control/clock_control_nrf.c b/drivers/clock_control/clock_control_nrf.c index 836dc9888c3..03955d3fb7d 100644 --- a/drivers/clock_control/clock_control_nrf.c +++ b/drivers/clock_control/clock_control_nrf.c @@ -638,6 +638,11 @@ static void clock_event_handler(nrfx_clock_evt_type_t event) } break; case NRFX_CLOCK_EVT_PLL_STARTED: +#if NRF_CLOCK_HAS_XO_TUNE + case NRFX_CLOCK_EVT_XO_TUNED: + case NRFX_CLOCK_EVT_XO_TUNE_ERROR: + case NRFX_CLOCK_EVT_XO_TUNE_FAILED: +#endif { /* unhandled event */ break;