summaryrefslogtreecommitdiff
path: root/drivers/dma
diff options
context:
space:
mode:
authorPeng Ma <peng.ma@nxp.com>2019-05-06 05:21:11 +0300
committerVinod Koul <vkoul@kernel.org>2019-05-21 07:35:20 +0300
commit827484912e824b7c8c2e1866272084e0e1d3a2c4 (patch)
tree2eef1c8b61e50e48013ea3c0d140cc28b82a8995 /drivers/dma
parent4e4106f5e942bff65548e82fc330d40385c89220 (diff)
downloadlinux-827484912e824b7c8c2e1866272084e0e1d3a2c4.tar.xz
dmaengine: fsl-qdma: Add improvement
When an error occurs we should clean the error register then to return Signed-off-by: Peng Ma <peng.ma@nxp.com> Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/fsl-qdma.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/dma/fsl-qdma.c b/drivers/dma/fsl-qdma.c
index aa1d0ae3d207..60b062c3647b 100644
--- a/drivers/dma/fsl-qdma.c
+++ b/drivers/dma/fsl-qdma.c
@@ -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);
- if (intr) {
+ if (intr)
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);
return IRQ_HANDLED;