dmaengine: axi_dmac: Add synchronization support
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 20 Oct 2015 09:46:30 +0000 (11:46 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 16 Nov 2015 02:58:52 +0000 (08:28 +0530)
commit860dd64c4382709a276eb4b7ef36596579dba04a
treec9c38824245a6b5ff95c382050873fa3909b2865
parent2ed086296e60c3ca9a63a025701f4d104f4ced85
dmaengine: axi_dmac: Add synchronization support

Implement the new device_synchronize() callback to allow proper
synchronization when stopping a channel. Since the driver already makes
sure that no new complete callbacks are scheduled after the
device_terminate_all() callback has been called, all left to do in the
device_synchronize() callback is to wait for all currently running complete
callbacks to finish.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/dma-axi-dmac.c