]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Mar 2024 14:48:41 +0000 (14:48 +0000)
commit91b001fb0b0816fb0fac2c7cecc301c3d0710236
tree818e178a4a8230c480eb9734996495e4e58ee4aa
parent4e0fe154be7b14498a8844cdffadda7ab51d5958
dmaengine: fsl-edma: correct calculation of 'nbytes' in multi-fifo scenario

commit 9ba17defd9edd87970b701085402bc8ecc3a11d4 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/dma/fsl-edma-common.c