dmaengine: fsl-edma: correct calculation of 'nbytes' in multi-fifo scenario
authorJoy Zou <joy.zou@nxp.com>
Wed, 31 Jan 2024 16:33:18 +0000 (11:33 -0500)
committerVinod Koul <vkoul@kernel.org>
Wed, 7 Feb 2024 08:34:59 +0000 (09:34 +0100)
commit9ba17defd9edd87970b701085402bc8ecc3a11d4
treecd5fcbbc782f0edc30d08ffb23aa5db0bd84cf51
parent87a39071e0b639f45e05d296cc0538eef44ec0bd
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: 72f5801a4e2b ("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>
drivers/dma/fsl-edma-common.c