]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: buffer-dmaengine: enable .get_dma_dev()
authorNuno Sá <nuno.sa@analog.com>
Tue, 7 Oct 2025 09:15:23 +0000 (10:15 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 13 Oct 2025 07:38:08 +0000 (08:38 +0100)
commit3db847df994d475db7812dde90376f2848bcd30a
treebc9e13febbdf25ac5ece81cb6b12f8b0a9de6bf2
parentf9c198c3ccaf90a1a265fb2ffa8d4b093c3b0784
iio: buffer-dmaengine: enable .get_dma_dev()

Wire up the .get_dma_dev() callback to use the DMA buffer infrastructure's
implementation. This ensures that DMABUF operations use the correct DMA
device for mapping, which is essential for proper operation on systems
where memory is mapped above the 32-bit range.

Without this callback, the core would fall back to using the IIO device's
parent, which may not have the appropriate DMA mask configuration for
high memory access.

Fixes: 7a86d469983a ("iio: buffer-dmaengine: Support new DMABUF based userspace API")
Reviewed-by: David Lechner <dlechner@baylibre.com>
Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/buffer/industrialio-buffer-dmaengine.c