Skip to content

Commit 19e4c56

Browse files
smalaekartben
authored andcommitted
drivers: dma: siwx91x: Bug fix for regular DMA transfers
Addressed an issue where regular/non-scatter-gather DMA transfers were not explicitly using the primary DMA descriptor structure. This ensures a smooth regular DMA transfer after any scatter gather transfer. Signed-off-by: Sai Santhosh Malae <Santhosh.Malae@silabs.com>
1 parent a7c0677 commit 19e4c56

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/dma/dma_silabs_siwx91x.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,9 @@ static int siwx91x_direct_chan_config(const struct device *dev, RSI_UDMA_HANDLE_
343343
channel_control.dstInc = UDMA_DST_INC_NONE;
344344
}
345345

346+
/* Clear the CHNL_PRI_ALT_CLR to use primary DMA descriptor structure */
347+
sys_write32(BIT(channel), (mem_addr_t)&cfg->reg->CHNL_PRI_ALT_CLR);
348+
346349
status = UDMAx_ChannelConfigure(&udma_resources, (uint8_t)channel,
347350
config->head_block->source_address,
348351
config->head_block->dest_address,

0 commit comments

Comments
 (0)