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)
committerVinod Koul <vkoul@kernel.org>
Fri, 16 Feb 2024 12:34:42 +0000 (18:04 +0530)
commita79f949a5ce1d45329d63742c2a995f2b47f9852
treeeacdb607a934045ab76e84a160a072388d2e2c76
parentecec7c9f29a7114a3e23a14020b1149ea7dffb4f
dmaengine: fsl-edma: correct max_segment_size setting

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>
drivers/dma/fsl-edma-common.h
drivers/dma/fsl-edma-main.c