]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: buffer-dmaengine: Support new DMABUF based userspace API
authorPaul Cercueil <paul@crapouillou.net>
Thu, 20 Jun 2024 12:27:24 +0000 (14:27 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 30 Jun 2024 10:29:28 +0000 (11:29 +0100)
commit7a86d469983ace116c320680643f4991019e87f1
tree5b69aa638288368687b2a453730e524f509c6b3c
parentd85318900c1c06a251ad3d86fba6bbab116a95d5
iio: buffer-dmaengine: Support new DMABUF based userspace API

Use the functions provided by the buffer-dma core to implement the
DMABUF userspace API in the buffer-dmaengine IIO buffer implementation.

Since we want to be able to transfer an arbitrary number of bytes and
not necesarily the full DMABUF, the associated scatterlist is converted
to an array of DMA addresses + lengths, which is then passed to
dmaengine_prep_slave_dma_array().

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Co-developed-by: Nuno Sa <nuno.sa@analog.com>
Signed-off-by: Nuno Sa <nuno.sa@analog.com>
Link: https://patch.msgid.link/20240620122726.41232-6-paul@crapouillou.net
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/buffer/industrialio-buffer-dmaengine.c