diff options
author | Frank Li <Frank.Li@nxp.com> | 2023-08-21 12:16:09 -0400 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2023-08-22 20:11:02 +0530 |
commit | c26e611433aaa064691343c0168f4671eb5cfa42 (patch) | |
tree | f81840e193f2fa8a4de2797b942906a93b5247bf /drivers/dma/mcf-edma-main.c | |
parent | 9e006b243962a42f6927d2d9fe1a7b0a29f45265 (diff) |
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>
Diffstat (limited to 'drivers/dma/mcf-edma-main.c')
-rw-r--r-- | drivers/dma/mcf-edma-main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/mcf-edma-main.c b/drivers/dma/mcf-edma-main.c index 28304dd8763a..aec22711b654 100644 --- a/drivers/dma/mcf-edma-main.c +++ b/drivers/dma/mcf-edma-main.c @@ -172,7 +172,7 @@ static void mcf_edma_irq_free(struct platform_device *pdev, } static struct fsl_edma_drvdata mcf_data = { - .version = v2, + .flags = FSL_EDMA_DRV_EDMA64, .setup_irq = mcf_edma_irq_init, }; |