From 3e5ea793b79988a3703ab300c1820449c13ca150 Mon Sep 17 00:00:00 2001 From: Vinayak Kariappa Chettimada Date: Thu, 1 Sep 2022 12:58:05 +0530 Subject: [PATCH] drivers: flash: nrf: Fix ticker stop user id value Ticker stop callback are executing in ULL_HIGH priority, correct the value to 1U instead of 0U which is for LLL execution context of the Bluetooth Controller. Signed-off-by: Vinayak Kariappa Chettimada --- drivers/flash/soc_flash_nrf_ticker.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/flash/soc_flash_nrf_ticker.c b/drivers/flash/soc_flash_nrf_ticker.c index 1cdec5450a..989a163ca1 100644 --- a/drivers/flash/soc_flash_nrf_ticker.c +++ b/drivers/flash/soc_flash_nrf_ticker.c @@ -91,7 +91,7 @@ static void time_slot_callback_work(uint32_t ticks_at_expire, ll_timeslice_ticker_id_get(&instance_index, &ticker_id); /* Stop the prepare ticker, from ULL_HIGH context */ - ret = ticker_stop(instance_index, 0U, ticker_id, + ret = ticker_stop(instance_index, 1U, ticker_id, ticker_stop_prepare_cb, NULL); __ASSERT((ret == TICKER_STATUS_SUCCESS || ret == TICKER_STATUS_BUSY), @@ -136,7 +136,7 @@ static void time_slot_delay(uint32_t ticks_at_expire, uint32_t ticks_delay, _ticker_sync_context.result = 0; /* Abort flash prepare ticker, from ULL_HIGH context */ - ret = ticker_stop(instance_index, 0U, ticker_id, + ret = ticker_stop(instance_index, 1U, ticker_id, ticker_stop_prepare_cb, NULL); __ASSERT((ret == TICKER_STATUS_SUCCESS || ret == TICKER_STATUS_BUSY),