]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
dmaengine: k3dma: Use vchan_terminate_vdesc() instead of desc_free
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Tue, 14 Nov 2017 14:32:11 +0000 (16:32 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 4 Dec 2017 17:03:51 +0000 (22:33 +0530)
commit3ee7e42f3c9b62c0283a26ea13b97a8dd7dad44d
tree54f99e9db38ddc1f17cf1ff59a1a6039cb6702cc
parent397c59bce6cbda05dc862b691e15ac2ef0ba1948
dmaengine: k3dma: 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>
Acked-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/k3dma.c