]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: common: edma: clear completion interrupts on stop
authorJohn Ogness <john.ogness@linutronix.de>
Mon, 27 Apr 2015 11:52:15 +0000 (13:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 May 2015 20:27:01 +0000 (22:27 +0200)
commit60107e85a74bb28341c5009ba842f690b8c7013d
tree48b7137424eda535a60d9e528649e0c7329cdeb5
parentc40fdbbaaa241c96284d2681dcf0938da14336ef
ARM: common: edma: clear completion interrupts on stop

When stopping a DMA transfer with interrupts disabled it is possible
that the DMA transfer completes before the events are cleared. In
this case the completion interrupt will be pending, causing a
completion callback after the transfer was stopped.

By clearing the completion interrupt for the stopping channel it is
ensured that no completion event will be generated after the stop.

Signed-off-by: John Ogness <john.ogness@linutronix.de>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/common/edma.c