]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
dmaengine: dw: don't handle interrupt when dmaengine is not used
authorJie Yang <yang.jie@intel.com>
Thu, 5 Mar 2015 06:08:08 +0000 (14:08 +0800)
committerVinod Koul <vinod.koul@intel.com>
Thu, 5 Mar 2015 08:37:48 +0000 (14:07 +0530)
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>
drivers/dma/dw/core.c

index 455b7a4f1e87fe890019eb6acd459e8d7c000667..a8ad05291b274498b55deef4bba88a2dbf1ffbd3 100644 (file)
@@ -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;
 
        /*