Skip to content

Commit e60e513

Browse files
drivers: i2s: siwx91x: ensure device runtime is released
Removed conditional checks for device runtime put in DMA RX and TX callbacks, ensuring that device runtime is always released asynchronously. Signed-off-by: Martin Hoff <[email protected]>
1 parent 0333576 commit e60e513

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

drivers/i2s/i2s_silabs_siwx91x.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -442,9 +442,7 @@ static void i2s_siwx91x_dma_rx_callback(const struct device *dma_dev, void *user
442442

443443
rx_disable:
444444
i2s_siwx91x_stream_disable(stream, dma_dev);
445-
if (stream->state == I2S_STATE_READY && stream->last_block) {
446-
pm_device_runtime_put_async(i2s_dev, K_NO_WAIT);
447-
}
445+
pm_device_runtime_put_async(i2s_dev, K_NO_WAIT);
448446
}
449447

450448
static void i2s_siwx91x_dma_tx_callback(const struct device *dma_dev, void *user_data,
@@ -511,9 +509,7 @@ static void i2s_siwx91x_dma_tx_callback(const struct device *dma_dev, void *user
511509

512510
tx_disable:
513511
i2s_siwx91x_stream_disable(stream, dma_dev);
514-
if (stream->state == I2S_STATE_READY && stream->last_block) {
515-
pm_device_runtime_put_async(i2s_dev, K_NO_WAIT);
516-
}
512+
pm_device_runtime_put_async(i2s_dev, K_NO_WAIT);
517513
}
518514

519515
static int i2s_siwx91x_param_config(const struct device *dev, enum i2s_dir dir)

0 commit comments

Comments
 (0)