dmaengine: intel_mid_dma: fix error status mask
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 31 Jan 2012 10:48:59 +0000 (12:48 +0200)
committerVinod Koul <vinod.koul@linux.intel.com>
Wed, 22 Feb 2012 12:41:48 +0000 (18:11 +0530)
The error status mask (MASK_ERR) has the same format as the other
masks (MASK_TFR, MASK_BLOCK etc) and must be cleared the same way.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
drivers/dma/intel_mid_dma.c

index 74f70aadf9e47313cb23e3bee95781c8f24a2e02..512e2ab3febb5560385f04f072606f1ca5bf6e1b 100644 (file)
@@ -1056,7 +1056,8 @@ static irqreturn_t intel_mid_dma_interrupt(int irq, void *data)
        }
        err_status &= mid->intr_mask;
        if (err_status) {
-               iowrite32(MASK_INTR_REG(err_status), mid->dma_base + MASK_ERR);
+               iowrite32((err_status << INT_MASK_WE),
+                         mid->dma_base + MASK_ERR);
                call_tasklet = 1;
        }
        if (call_tasklet)