summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJie Yang <yang.jie@intel.com>2015-03-05 09:08:08 +0300
committerVinod Koul <vinod.koul@intel.com>2015-03-05 11:37:48 +0300
commit94b3eed7b8a4311f56a86b36430e9068b596ada4 (patch)
tree9235d958ed3e4d0cf5198b2fa0a406c29db27ce0 /drivers
parent1eed601a5b02a1f0bbabd155aeea7879fc3708eb (diff)
downloadlinux-94b3eed7b8a4311f56a86b36430e9068b596ada4.tar.xz
dmaengine: dw: don't handle interrupt when dmaengine is not used
When dma controller is not used by any user and set off, we should disble interrupt handler, at least the interrupt reset part, for some subsystem, e.g. ADSP, may use the dma in its own logic, here reset the interrupt may make this subsystem work abnormally. Signed-off-by: Jie Yang <yang.jie@intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/dma/dw/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/dw/core.c b/drivers/dma/dw/core.c
index 455b7a4f1e87..a8ad05291b27 100644
--- a/drivers/dma/dw/core.c
+++ b/drivers/dma/dw/core.c
@@ -626,7 +626,7 @@ static irqreturn_t dw_dma_interrupt(int irq, void *dev_id)
dev_vdbg(dw->dma.dev, "%s: status=0x%x\n", __func__, status);
/* Check if we have any interrupt from the DMAC */
- if (!status)
+ if (!status || !dw->in_use)
return IRQ_NONE;
/*