Skip to content

Commit 6bf0dbc

Browse files
btogoreancommodo
authored andcommitted
dmaengine: dma-axi-dmac: Fix cyclic transfers descriptors length
In a cyclic transfer num_periods * period_len = buf_len. So for each period must be allocated a descriptor having length equal with one period and not the whole transfer buffer. Signed-off-by: Bogdan Togorean <bogdan.togorean@analog.com>
1 parent 8b97db6 commit 6bf0dbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/dma/dma-axi-dmac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ static struct dma_async_tx_descriptor *axi_dmac_prep_dma_cyclic(
636636
return NULL;
637637

638638
axi_dmac_fill_linear_sg(chan, direction, buf_addr, num_periods,
639-
buf_len, desc->sg);
639+
period_len, desc->sg);
640640

641641
desc->cyclic = true;
642642

0 commit comments

Comments
 (0)