]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dmaengine: xilinx_dma: Support descriptor setup from dma_vecs
authorFolker Schwesinger <dev@folker-schwesinger.de>
Tue, 26 Aug 2025 18:21:10 +0000 (20:21 +0200)
committerVinod Koul <vkoul@kernel.org>
Tue, 2 Sep 2025 07:04:19 +0000 (12:34 +0530)
commit38433a6fdfb75d12a90ffff262705e1ecfe88556
tree2be394a61f1ffa7aac38ee6a4afe79fd971ade12
parentd9a3e9929452780df16f3414f0d59b5f69d058cf
dmaengine: xilinx_dma: Support descriptor setup from dma_vecs

The DMAEngine provides an interface for obtaining DMA transaction
descriptors from an array of scatter gather buffers represented by
struct dma_vec. This interface is used in the DMABUF API of the IIO
framework [1][2].
To enable DMABUF support through the IIO framework for the Xilinx DMA,
implement callback .device_prep_peripheral_dma_vec() of struct
dma_device in the driver.

[1]: 7a86d469983a ("iio: buffer-dmaengine: Support new DMABUF based userspace API")
[2]: 5878853fc938 ("dmaengine: Add API function dmaengine_prep_peripheral_dma_vec()")

Signed-off-by: Folker Schwesinger <dev@folker-schwesinger.de>
Reviewed-by: Suraj Gupta <suraj.gupta2@amd.com>
Reviewed-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
Link: https://lore.kernel.org/r/DCCKQLKOZC06.2H6LJ8RJQJNV2@folker-schwesinger.de
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/xilinx/xilinx_dma.c