Skip to content

Commit c4cfa3b

Browse files
cvinayakgmarull
authored andcommitted
[nrf fromlist] 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 <[email protected]> (cherry picked from commit 1a302c22bcb2e32ce5287ba932a2c0cd553f6bac) Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent 011d888 commit c4cfa3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/flash/soc_flash_nrf_ticker.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ static void time_slot_callback_work(uint32_t ticks_at_expire,
9191
ll_timeslice_ticker_id_get(&instance_index, &ticker_id);
9292

9393
/* Stop the prepare ticker, from ULL_HIGH context */
94-
ret = ticker_stop(instance_index, 0U, ticker_id,
94+
ret = ticker_stop(instance_index, 1U, ticker_id,
9595
ticker_stop_prepare_cb, NULL);
9696
__ASSERT((ret == TICKER_STATUS_SUCCESS ||
9797
ret == TICKER_STATUS_BUSY),
@@ -136,7 +136,7 @@ static void time_slot_delay(uint32_t ticks_at_expire, uint32_t ticks_delay,
136136
_ticker_sync_context.result = 0;
137137

138138
/* Abort flash prepare ticker, from ULL_HIGH context */
139-
ret = ticker_stop(instance_index, 0U, ticker_id,
139+
ret = ticker_stop(instance_index, 1U, ticker_id,
140140
ticker_stop_prepare_cb, NULL);
141141
__ASSERT((ret == TICKER_STATUS_SUCCESS ||
142142
ret == TICKER_STATUS_BUSY),

0 commit comments

Comments
 (0)