Skip to content

Commit 9548457

Browse files
khoatranyjkartben
authored andcommitted
drivers: i2s: Remove redundant condition check causing transfer error
When enabling the DTC (Data Transfer Controller) for the I2S SSIE driver on Renesas RA8x2 boards, a redundant condition check prevented the interrupt service routines from entering during data transfer. This caused the transfer to fail when DTC was active. This commit removes the unnecessary condition check, allowing the DTC to operate correctly with I2S SSIE transfers on RA8x2 devices. Signed-off-by: Khoa Tran <[email protected]>
1 parent 1ad2bc0 commit 9548457

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/i2s/i2s_renesas_ra_ssie.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,12 @@ __maybe_unused static void ssi_rt_isr(void *p_args)
9292
{
9393
const struct device *dev = (struct device *)p_args;
9494
struct renesas_ra_ssie_data *dev_data = (struct renesas_ra_ssie_data *)dev->data;
95-
R_SSI0_Type *p_ssi_reg = dev_data->fsp_ctrl.p_reg;
9695

97-
if (p_ssi_reg->SSIFSR_b.TDE && dev_data->active_dir == I2S_DIR_TX) {
96+
if (dev_data->active_dir == I2S_DIR_TX) {
9897
ssi_txi_isr();
9998
}
10099

101-
if (p_ssi_reg->SSIFSR_b.RDF && dev_data->active_dir == I2S_DIR_RX) {
100+
if (dev_data->active_dir == I2S_DIR_RX) {
102101
ssi_rxi_isr();
103102
}
104103
}

0 commit comments

Comments
 (0)