Skip to content

Commit a4b00f5

Browse files
Larisa Grigorevinodkoul
authored andcommitted
dmaengine: fsl-edma: select of_dma_xlate based on the dmamuxs presence
Select the of_dma_xlate function based on the dmamuxs definition rather than the FSL_EDMA_DRV_SPLIT_REG flag, which pertains to the eDMA3 layout. This change is a prerequisite for the S32G platforms, which integrate both eDMAv3 and DMAMUX. Existing platforms with FSL_EDMA_DRV_SPLIT_REG will not be impacted, as they all have dmamuxs set to zero. Signed-off-by: Larisa Grigore <larisa.grigore@oss.nxp.com> Reviewed-by: Frank Li <Frank.Li@nxp.com> Link: https://lore.kernel.org/r/20241219102415.1208328-2-larisa.grigore@oss.nxp.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 57a7138 commit a4b00f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/dma/fsl-edma-main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ static int fsl_edma_probe(struct platform_device *pdev)
646646
}
647647

648648
ret = of_dma_controller_register(np,
649-
drvdata->flags & FSL_EDMA_DRV_SPLIT_REG ? fsl_edma3_xlate : fsl_edma_xlate,
649+
drvdata->dmamuxs ? fsl_edma_xlate : fsl_edma3_xlate,
650650
fsl_edma);
651651
if (ret) {
652652
dev_err(&pdev->dev,

0 commit comments

Comments
 (0)