Changelog v2 -> v3: * https://lore.kernel.org/linux-iio/20210217083438.37865-4-alexandru.ardelean@xxxxxxxxxx/T/#m396545e0c6cc9d58e17f4d79b6fc707fd0373d89 * adding only infrastructure pieces for output DAC buffers, unfortunately I couldn't finish a complete DAC change to showcase these changes * patch 'iio: Add output buffer support' - moved new 'bufferY/direction' attribute at the end and added comment about what it should be added at the end * removed Lars' comment '/* need a way of knowing if there may be enough data... */' * updated some various formatting; Alexandru Ardelean (1): iio: triggered-buffer: extend support to configure output buffers Lars-Peter Clausen (5): iio: Add output buffer support iio: kfifo-buffer: Add output buffer support iio: buffer-dma: Allow to provide custom buffer ops iio: buffer-dma: Add output buffer support iio: buffer-dma: add support for cyclic DMA transfers Documentation/ABI/testing/sysfs-bus-iio | 7 + drivers/iio/accel/adxl372.c | 1 + drivers/iio/accel/bmc150-accel-core.c | 1 + drivers/iio/adc/adi-axi-adc.c | 4 +- drivers/iio/adc/at91-sama5d2_adc.c | 4 +- drivers/iio/buffer/industrialio-buffer-dma.c | 120 ++++++++++++++-- .../buffer/industrialio-buffer-dmaengine.c | 72 +++++++--- .../buffer/industrialio-triggered-buffer.c | 8 +- drivers/iio/buffer/kfifo_buf.c | 50 +++++++ .../cros_ec_sensors/cros_ec_sensors_core.c | 1 + .../common/hid-sensors/hid-sensor-trigger.c | 5 +- drivers/iio/industrialio-buffer.c | 133 +++++++++++++++++- include/linux/iio/buffer-dma.h | 11 +- include/linux/iio/buffer-dmaengine.h | 8 +- include/linux/iio/buffer.h | 7 + include/linux/iio/buffer_impl.h | 11 ++ include/linux/iio/triggered_buffer.h | 11 +- include/uapi/linux/iio/buffer.h | 1 + 18 files changed, 412 insertions(+), 43 deletions(-) -- 2.27.0