diff mbox

omap: dma: Add read-back to DMA interrupt handler to avoid spurious interrupts

Message ID 1288017324-2181-1-git-send-email-mathias.nyman@nokia.com (mailing list archive)
State Accepted
Commit 801bdf2b09eb3de26318f1ba6cf0a15417731396
Delegated to: Tony Lindgren
Headers show

Commit Message

Mathias Nyman Oct. 25, 2010, 2:35 p.m. UTC
None
diff mbox

Patch

diff --git a/arch/arm/plat-omap/dma.c b/arch/arm/plat-omap/dma.c
index f5c5b8d..2c28265 100644
--- a/arch/arm/plat-omap/dma.c
+++ b/arch/arm/plat-omap/dma.c
@@ -1983,6 +1983,8 @@  static int omap2_dma_handle_ch(int ch)
 
 	dma_write(OMAP2_DMA_CSR_CLEAR_MASK, CSR(ch));
 	dma_write(1 << ch, IRQSTATUS_L0);
+	/* read back the register to flush the write */
+	dma_read(IRQSTATUS_L0);
 
 	/* If the ch is not chained then chain_id will be -1 */
 	if (dma_chan[ch].chain_id != -1) {