Skip to content

Commit 78487f2

Browse files
committed
[nrf fromlist] drivers: spi: nrf: use async variant of device PM _put()
SPIM transaction can be finalized from ISR context. Because of that, async variant of device runtime power management API must be used to avoid assertion. Upstream PR #: 75715 Signed-off-by: Nikodem Kastelik <[email protected]>
1 parent 505626d commit 78487f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/spi/spi_nrfx_spim.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ static inline void finalize_spi_transaction(const struct device *dev, bool deact
9292
nrfy_spim_disable(reg);
9393
}
9494
if (IS_ENABLED(CONFIG_PM_DEVICE_RUNTIME)) {
95-
pm_device_runtime_put(dev);
95+
pm_device_runtime_put_async(dev, K_NO_WAIT);
9696
}
9797
}
9898

0 commit comments

Comments
 (0)