]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: img-mdc-dma: Use vchan_terminate_vdesc() instead of desc_free
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Tue, 14 Nov 2017 14:32:10 +0000 (16:32 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 4 Dec 2017 17:03:51 +0000 (22:33 +0530)
commit1bb4b7fb8be658d62b447d3c8c9e3e1db4476979
treea8c6cf73e3c18df6436cd35c19e828bf91f8e67a
parent95b107310bcf639f24ea8fe2c0a9e299eac07ffc
dmaengine: img-mdc-dma: Use vchan_terminate_vdesc() instead of desc_free

To avoid race with vchan_complete, use the race free way to terminate
running transfer.

Implement the device_synchronize callback to make sure that the terminated
descriptor is freed.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/img-mdc-dma.c