ARM: OMAP: Fix race in OMAP2/3 DMA IRQ handling
authorJuha Yrjola <juha.yrjola@solidboot.com>
Thu, 29 Jan 2009 16:57:12 +0000 (08:57 -0800)
committerGrazvydas Ignotas <notasas@gmail.com>
Thu, 10 Jun 2010 13:05:32 +0000 (16:05 +0300)
commit0f2054744556d592d167993c1504d2217b59a491
treeab85ab7c798d06cb1428446474cac3621d9c6bba
parent50d901f5340d4af2662a141acd9220d63471c7d9
ARM: OMAP: Fix race in OMAP2/3 DMA IRQ handling

CSR must be cleared before invoking the callback.

If the callback function starts a new, fast DMA transfer on the same
channel, the completion status might lost if CSR is cleared after
the callback invocation.

Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/dma.c