Re: [PATCH 09/10] dmaengine: k3dma: Use vchan_terminate_vdesc() instead of desc_free

From: zhangfei
Date: Tue Nov 14 2017 - 23:07:00 EST




On 2017å11æ14æ 22:32, Peter Ujfalusi wrote:
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.

CC: Zhangfei Gao <zhangfei.gao@xxxxxxxxxx>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@xxxxxx>

Thanks Peter.

Acked-by: Zhangfei Gao <zhangfei.gao@xxxxxxxxxx>