summaryrefslogtreecommitdiff
path: root/drivers/dma/fsl-qdma.c
diff options
context:
space:
mode:
authorPeng Ma <peng.ma@nxp.com>2019-05-22 06:21:03 +0300
committerVinod Koul <vkoul@kernel.org>2019-06-04 15:05:05 +0300
commitc983d805a7bb253b9015bc2c03bc8827031ce590 (patch)
tree10d1f12ea64769d04f80f7875d69ef984bb42745 /drivers/dma/fsl-qdma.c
parent8f95adcf3a5aabb7a416d3c03c561acd580df213 (diff)
downloadlinux-c983d805a7bb253b9015bc2c03bc8827031ce590.tar.xz
dmaengine: fsl-qdma: Continue to clear register on error
When an error occurs we should clean the error register then to return Signed-off-by: Peng Ma <peng.ma@nxp.com> [vkoul: change patch title] Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/fsl-qdma.c')
-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 da8fdf5dca74..8e341c0c13bc 100644
--- a/drivers/dma/fsl-qdma.c
+++ b/drivers/dma/fsl-qdma.c
@@ -703,10 +703,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;