diff options
author | Mathias Nyman <mathias.nyman@nokia.com> | 2010-10-25 14:35:24 +0000 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2010-11-05 12:13:10 -0700 |
commit | e860e6da96f5a320a752da232e03d7bf885710b7 (patch) | |
tree | 9b2f363dc5f46f04421d0269efd1e5851760f432 /arch/arm/plat-omap | |
parent | b7283945c5ed8e78f0fe2c3313d8d1cdbc19b4b3 (diff) | |
download | linux-e860e6da96f5a320a752da232e03d7bf885710b7.tar.bz2 |
omap: dma: Add read-back to DMA interrupt handler to avoid spuriousinterrupts
Flush the writes to IRQSTATUS_L0 register in the DMA interrupt handler by reading the register
directly after write. This prevents the spurious DMA interrupts noted when using VDD_OPP 1
Signed-off-by: Mathias Nyman <mathias.nyman@nokia.com>
Acked-by: Santosh Shilimkar <Santosh.shilimkar@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/plat-omap')
-rw-r--r-- | arch/arm/plat-omap/dma.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/dma.c b/arch/arm/plat-omap/dma.c index f5c5b8da9a87..2c2826571d45 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) { |