Skip to content

Commit

Permalink
dmaengine: intel_mid_dma: fix error status mask
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adrian Hunter authored and Vinod Koul committed Feb 22, 2012
1 parent b63fd6c commit 7f99a42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/dma/intel_mid_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7f99a42

Please sign in to comment.