Commit 82748491 authored by Peng Ma's avatar Peng Ma Committed by Vinod Koul

dmaengine: fsl-qdma: Add improvement

When an error occurs we should clean the error register then to return
Signed-off-by: default avatarPeng Ma <peng.ma@nxp.com>
Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 4e4106f5
...@@ -701,10 +701,8 @@ static irqreturn_t fsl_qdma_error_handler(int irq, void *dev_id) ...@@ -701,10 +701,8 @@ static irqreturn_t fsl_qdma_error_handler(int irq, void *dev_id)
intr = qdma_readl(fsl_qdma, status + FSL_QDMA_DEDR); intr = qdma_readl(fsl_qdma, status + FSL_QDMA_DEDR);
if (intr) { if (intr)
dev_err(fsl_qdma->dma_dev.dev, "DMA transaction error!\n"); dev_err(fsl_qdma->dma_dev.dev, "DMA transaction error!\n");
return IRQ_NONE;
}
qdma_writel(fsl_qdma, FSL_QDMA_DEDR_CLEAR, status + FSL_QDMA_DEDR); qdma_writel(fsl_qdma, FSL_QDMA_DEDR_CLEAR, status + FSL_QDMA_DEDR);
return IRQ_HANDLED; return IRQ_HANDLED;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment