Skip to content

Commit ac8dbdb

Browse files
committed
fixup! [nrf fromlist] modules: hal_nordic: nrf_802154: use timer to emit hfclk_ready on nRF54LM20A
1 parent 6790916 commit ac8dbdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/hal_nordic/nrf_802154/sl_opensource/platform/nrf_802154_clock_zephyr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ void nrf_802154_clock_hfclk_start(void)
135135

136136
void nrf_802154_clock_hfclk_stop(void)
137137
{
138-
if (atomic_cas(&hfclk_requested, HFCLK_NOT_REQUESTED, HFCLK_REQUESTED)) {
138+
if (atomic_cas(&hfclk_requested, HFCLK_REQUESTED, HFCLK_NOT_REQUESTED) || hfclk_is_running) {
139139
int ret = nrf_clock_control_cancel_or_release(DEVICE_DT_GET(DT_NODELABEL(hfxo)),
140140
NULL, &hfclk_cli);
141141

0 commit comments

Comments
 (0)