Skip to content

Commit 5bbeea3

Browse files
Peter Ujfalusivinodkoul
authored andcommitted
dmaengine: ti: k3-udma: Add missing dma_sync call for rx flush descriptor
The TR mode rx flush descriptor did not had a dma_sync_single_for_device() call to make sure that the DMA see the correct information. Signed-off-by: Peter Ujfalusi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent d9fd428 commit 5bbeea3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/dma/ti/k3-udma.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3463,6 +3463,9 @@ static int udma_setup_rx_flush(struct udma_dev *ud)
34633463
tr_req->icnt0 = rx_flush->buffer_size;
34643464
tr_req->icnt1 = 1;
34653465

3466+
dma_sync_single_for_device(dev, hwdesc->cppi5_desc_paddr,
3467+
hwdesc->cppi5_desc_size, DMA_TO_DEVICE);
3468+
34663469
/* Set up descriptor to be used for packet mode */
34673470
hwdesc = &rx_flush->hwdescs[1];
34683471
hwdesc->cppi5_desc_size = ALIGN(sizeof(struct cppi5_host_desc_t) +

0 commit comments

Comments
 (0)