Skip to content

Commit f5b3ba5

Browse files
nxpfranklivinodkoul
authored andcommitted
dmaengine: fsl-edma: move clearing of register interrupt into setup_irq function
This accommodates differences in the register layout of EDMA v3 by moving the clearing of register interrupts into the platform-specific set_irq function. This should ensure better compatibility with EDMA v3. Signed-off-by: Frank Li <Frank.Li@nxp.com> Link: https://lore.kernel.org/r/20230821161617.2142561-9-Frank.Li@nxp.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent a9903de commit f5b3ba5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/dma/fsl-edma-main.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ fsl_edma_irq_init(struct platform_device *pdev, struct fsl_edma_engine *fsl_edma
113113
{
114114
int ret;
115115

116+
edma_writel(fsl_edma, ~0, fsl_edma->regs.intl);
117+
116118
fsl_edma->txirq = platform_get_irq_byname(pdev, "edma-tx");
117119
if (fsl_edma->txirq < 0)
118120
return fsl_edma->txirq;
@@ -154,6 +156,8 @@ fsl_edma2_irq_init(struct platform_device *pdev,
154156
int i, ret, irq;
155157
int count;
156158

159+
edma_writel(fsl_edma, ~0, fsl_edma->regs.intl);
160+
157161
count = platform_irq_count(pdev);
158162
dev_dbg(&pdev->dev, "%s Found %d interrupts\r\n", __func__, count);
159163
if (count <= 2) {
@@ -321,7 +325,6 @@ static int fsl_edma_probe(struct platform_device *pdev)
321325
fsl_edma_chan_mux(fsl_chan, 0, false);
322326
}
323327

324-
edma_writel(fsl_edma, ~0, regs->intl);
325328
ret = fsl_edma->drvdata->setup_irq(pdev, fsl_edma);
326329
if (ret)
327330
return ret;

0 commit comments

Comments
 (0)