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 <vich@nordicsemi.no>
This commit is contained in:
Vinayak Kariappa Chettimada 2022-09-01 12:58:05 +05:30 committed by Carles Cufí
parent 67cf435ae1
commit 3e5ea793b7

View file

@ -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),