Message ID | 20241216075819.2066772-2-larisa.grigore@oss.nxp.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | Add eDMAv3 support for S32G2/S32G3 SoCs | expand |
On Mon, Dec 16, 2024 at 09:58:11AM +0200, Larisa Grigore wrote: > 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. Nit: Add space line here. Need empty line between paragraphs Reviewed-by: Frank Li <Frank.Li@nxp.com> > This change is a prerequisite for the S32G platforms, which integrate both > eDMAv3 and DMAMUX. Nit: the same here. > 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> > --- > dcrivers/dma/fsl-edma-main.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/dma/fsl-edma-main.c b/drivers/dma/fsl-edma-main.c > index 60de1003193a..2a7d19f51287 100644 > --- a/drivers/dma/fsl-edma-main.c > +++ b/drivers/dma/fsl-edma-main.c > @@ -646,7 +646,7 @@ static int fsl_edma_probe(struct platform_device *pdev) > } > > ret = of_dma_controller_register(np, > - drvdata->flags & FSL_EDMA_DRV_SPLIT_REG ? fsl_edma3_xlate : fsl_edma_xlate, > +a drvdata->dmamuxs ? fsl_edma_xlate : fsl_edma3_xlate, > fsl_edma); > if (ret) { > dev_err(&pdev->dev, > -- > 2.47.0 >
On 12/16/2024 6:16 PM, Frank Li wrote: > On Mon, Dec 16, 2024 at 09:58:11AM +0200, Larisa Grigore wrote: >> 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. > > Nit: Add space line here. Need empty line between paragraphs > > Reviewed-by: Frank Li <Frank.Li@nxp.com> > Thank you Frank! Will be fixed in V2. >> This change is a prerequisite for the S32G platforms, which integrate both >> eDMAv3 and DMAMUX. > > Nit: the same here. > >> 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> >> --- >> dcrivers/dma/fsl-edma-main.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/dma/fsl-edma-main.c b/drivers/dma/fsl-edma-main.c >> index 60de1003193a..2a7d19f51287 100644 >> --- a/drivers/dma/fsl-edma-main.c >> +++ b/drivers/dma/fsl-edma-main.c >> @@ -646,7 +646,7 @@ static int fsl_edma_probe(struct platform_device *pdev) >> } >> >> ret = of_dma_controller_register(np, >> - drvdata->flags & FSL_EDMA_DRV_SPLIT_REG ? fsl_edma3_xlate : fsl_edma_xlate, >> +a drvdata->dmamuxs ? fsl_edma_xlate : fsl_edma3_xlate, >> fsl_edma); >> if (ret) { >> dev_err(&pdev->dev, >> -- >> 2.47.0 >> Best regards, Larisa
diff --git a/drivers/dma/fsl-edma-main.c b/drivers/dma/fsl-edma-main.c index 60de1003193a..2a7d19f51287 100644 --- a/drivers/dma/fsl-edma-main.c +++ b/drivers/dma/fsl-edma-main.c @@ -646,7 +646,7 @@ static int fsl_edma_probe(struct platform_device *pdev) } ret = of_dma_controller_register(np, - drvdata->flags & FSL_EDMA_DRV_SPLIT_REG ? fsl_edma3_xlate : fsl_edma_xlate, + drvdata->dmamuxs ? fsl_edma_xlate : fsl_edma3_xlate, fsl_edma); if (ret) { dev_err(&pdev->dev,
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> --- drivers/dma/fsl-edma-main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)