dmaengine: xilinx_dma: Add callback_result support
authorNicholas Graumann <nick.graumann@gmail.com>
Tue, 15 Oct 2019 14:48:22 +0000 (20:18 +0530)
committerVinod Koul <vkoul@kernel.org>
Sun, 20 Oct 2019 14:05:27 +0000 (19:35 +0530)
commitd8bae21a48dbe132788291257638f323f4ee5c94
tree8fbd4ec96c0f5e89a59e1b6c4583e1d167e805ed
parenta575d0b4e663d818803f75de0cf4bc3c4b35b203
dmaengine: xilinx_dma: Add callback_result support

Take advantage of dmaengine_desc_get_callback_invoke which allows either
a callback or callback_result to be specified. This can be useful when
using the AXI DMA transfer unknown quantities of data where the residue
contained in the result can be used to calculate the number of bytes
transferred.

Signed-off-by: Nicholas Graumann <nick.graumann@gmail.com>
Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Link: https://lore.kernel.org/r/1571150904-3988-6-git-send-email-radhey.shyam.pandey@xilinx.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/xilinx/xilinx_dma.c