Skip to content

Commit 5b9706b

Browse files
miquelraynalvinodkoul
authored andcommitted
dmaengine: xilinx: xdma: Fix wrong offsets in the buffers addresses in dma descriptor
The addition of interleaved transfers slightly changed the way addresses inside DMA descriptors are derived, breaking cyclic transfers. Fixes: 3e184e6 ("dmaengine: xilinx: xdma: Prepare the introduction of interleaved DMA transfers") Cc: stable@vger.kernel.org Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Signed-off-by: Louis Chauvet <louis.chauvet@bootlin.com> Link: https://lore.kernel.org/r/20240327-digigram-xdma-fixes-v1-1-45f4a52c0283@bootlin.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 244296c commit 5b9706b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/dma/xilinx/xdma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ xdma_prep_dma_cyclic(struct dma_chan *chan, dma_addr_t address,
704704
desc_num = 0;
705705
for (i = 0; i < periods; i++) {
706706
desc_num += xdma_fill_descs(sw_desc, *src, *dst, period_size, desc_num);
707-
addr += i * period_size;
707+
addr += period_size;
708708
}
709709

710710
tx_desc = vchan_tx_prep(&xdma_chan->vchan, &sw_desc->vdesc, flags);

0 commit comments

Comments
 (0)