]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dmaengine: fsl-edma: correct max_segment_size setting
authorFrank Li <Frank.Li@nxp.com>
Wed, 7 Feb 2024 19:47:32 +0000 (14:47 -0500)
committerSasha Levin <sashal@kernel.org>
Fri, 15 Mar 2024 14:48:13 +0000 (10:48 -0400)
commit3b897ea5ee7583bc45a75360c6724481da9fb6f9
tree450804aeb0eba9c50d87501e95030971eb652776
parent525c139714791b52d8eb36cc99815edb47978777
dmaengine: fsl-edma: correct max_segment_size setting

[ Upstream commit a79f949a5ce1d45329d63742c2a995f2b47f9852 ]

Correcting the previous setting of 0x3fff to the actual value of 0x7fff.

Introduced new macro 'EDMA_TCD_ITER_MASK' for improved code clarity and
utilization of FIELD_GET to obtain the accurate maximum value.

Cc: stable@vger.kernel.org
Fixes: e06748539432 ("dmaengine: fsl-edma: support edma memcpy")
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20240207194733.2112870-1-Frank.Li@nxp.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/dma/fsl-edma-common.h
drivers/dma/fsl-edma-main.c