linux/drivers/iio/buffer
Nuno Sá 6717a94824 iio: buffer-dmaengine: enable .get_dma_dev()
commit 3db847df99 upstream.

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: 7a86d46998 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2025-12-07 06:24:57 +09:00
..
industrialio-buffer-cb.c iio: buffer: make use of iio_get_masklength() 2024-07-29 20:31:07 +01:00
industrialio-buffer-dma.c iio: buffer-dma: support getting the DMA channel 2025-12-07 06:24:57 +09:00
industrialio-buffer-dmaengine.c iio: buffer-dmaengine: enable .get_dma_dev() 2025-12-07 06:24:57 +09:00
industrialio-hw-consumer.c iio: buffer: make use of iio_get_masklength() 2024-07-29 20:31:07 +01:00
industrialio-triggered-buffer.c iio: triggered-buffer: prevent possible freeing of wrong buffer 2023-11-26 17:17:04 +00:00
Kconfig iio: buffer: Kconfig: add title for IIO_TRIGGERED_BUFFER symbol 2020-09-29 17:27:08 +01:00
kfifo_buf.c iio: add missing MODULE_DESCRIPTION() macros 2024-06-13 19:19:23 +01:00
Makefile iio: Add hardware consumer buffer support 2018-01-10 10:30:05 +00:00