Skip to content

Commit 9ba17de

Browse files
1991Joyzouvinodkoul
authored andcommitted
dmaengine: fsl-edma: correct calculation of 'nbytes' in multi-fifo scenario
The 'nbytes' should be equivalent to burst * width in audio multi-fifo setups. Given that the FIFO width is fixed at 32 bits, adjusts the burst size for multi-fifo configurations to match the slave maxburst in the configuration. Cc: stable@vger.kernel.org Fixes: 72f5801 ("dmaengine: fsl-edma: integrate v3 support") Signed-off-by: Joy Zou <joy.zou@nxp.com> Signed-off-by: Frank Li <Frank.Li@nxp.com> Link: https://lore.kernel.org/r/20240131163318.360315-1-Frank.Li@nxp.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 87a3907 commit 9ba17de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/dma/fsl-edma-common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ void fsl_edma_fill_tcd(struct fsl_edma_chan *fsl_chan,
503503
if (fsl_chan->is_multi_fifo) {
504504
/* set mloff to support multiple fifo */
505505
burst = cfg->direction == DMA_DEV_TO_MEM ?
506-
cfg->src_addr_width : cfg->dst_addr_width;
506+
cfg->src_maxburst : cfg->dst_maxburst;
507507
nbytes |= EDMA_V3_TCD_NBYTES_MLOFF(-(burst * 4));
508508
/* enable DMLOE/SMLOE */
509509
if (cfg->direction == DMA_MEM_TO_DEV) {

0 commit comments

Comments
 (0)