dmaengine: fsl-edma: Remove enum edma_version
authorFrank Li <Frank.Li@nxp.com>
Mon, 21 Aug 2023 16:16:09 +0000 (12:16 -0400)
committerVinod Koul <vkoul@kernel.org>
Tue, 22 Aug 2023 14:41:02 +0000 (20:11 +0530)
commitc26e611433aaa064691343c0168f4671eb5cfa42
treef81840e193f2fa8a4de2797b942906a93b5247bf
parent9e006b243962a42f6927d2d9fe1a7b0a29f45265
dmaengine: fsl-edma: Remove enum edma_version

The enum edma_version, which defines v1, v2, and v3, is a software concept
used to distinguish IP differences. However, it is not aligned with the
chip reference manual. According to the 7ulp reference manual, it should
be edma2. In the future, there will be edma3, edma4, and edma5, which
could cause confusion. To avoid this confusion, remove the edma_version
and instead use drvdata->flags to distinguish the IP difference.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20230821161617.2142561-5-Frank.Li@nxp.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/fsl-edma-common.c
drivers/dma/fsl-edma-common.h
drivers/dma/fsl-edma-main.c
drivers/dma/mcf-edma-main.c