]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: virt-dma: Add synchronization helper function
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 20 Oct 2015 09:46:29 +0000 (11:46 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 16 Nov 2015 02:58:52 +0000 (08:28 +0530)
commit17d24bf0bae3f3f3abbaf605a4e5ed805b39e114
tree207a0607ec8caac6657d070d5dc1033750849299
parent48f46c8d72f4ec2ad727b56bad85f94388f29411
dmaengine: virt-dma: Add synchronization helper function

Add a synchronize helper function for the virt-dma library. The function
makes sure that any scheduled descriptor complete callbacks have finished
running before the function returns.

This needs to be called by drivers using virt-dma in their
device_synchronize() callback. Depending on the driver additional
operations might be necessary in addition to calling vchan_synchronize() to
ensure proper synchronization.

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