dmaengine: zynqmp_dma: Add device_synchronize support
authorSwati Agarwal <swati.agarwal@amd.com>
Thu, 15 Sep 2022 09:05:16 +0000 (14:35 +0530)
committerVinod Koul <vkoul@kernel.org>
Thu, 29 Sep 2022 17:16:08 +0000 (22:46 +0530)
commitf2b816a1dfb8b4bbbecd1603e6c17c3d457e2c0a
tree56bfc60e48559d4283ed141869a775f27996b654
parent41d8ffd7cb2add394a2626f12357770846abcf1e
dmaengine: zynqmp_dma: Add device_synchronize support

dmaengine_synchronize implementation is required to synchronize proper
termination of current transfers so that any memory resources are not freed
while still in use.

Implement this callback in the driver so that framework can use the same
(in dmaengine_terminate_sync/ dmaengine_synchronize).

Signed-off-by: Swati Agarwal <swati.agarwal@amd.com>
Link: https://lore.kernel.org/r/20220915090516.5812-1-swati.agarwal@amd.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/xilinx/zynqmp_dma.c