]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: dma-jz4780: Use vchan_terminate_vdesc() instead of desc_free
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Tue, 14 Nov 2017 14:32:08 +0000 (16:32 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 4 Dec 2017 17:03:51 +0000 (22:33 +0530)
commit1fbd41f8b40a7ada42216bc7b7d42b5606e88d88
tree5e1e0e2ba9b03deea402ed965057a84f1cee4ef8
parenta2cd0e46ba8765d7f0def9fc6b37e4246de11c4d
dmaengine: dma-jz4780: 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/dma-jz4780.c