Re: [PATCH v3 0/6] iio: Add output buffer support

From: Jonathan Cameron
Date: Sun Feb 21 2021 - 07:02:13 EST


On Fri, 19 Feb 2021 14:40:06 +0200
Alexandru Ardelean <alexandru.ardelean@xxxxxxxxxx> wrote:

> 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

For that I wonder if the driver you did previously would work with the hrtimer
trigger (so just drop the pwm stuff). Obviously we'd want someone to sanity
check that with the hardware. An alternative (for now) would be to add
a simple example to the dummy driver.

I'm not keen to take this series without the user, but I'll review it on basis
we'll get that sorted fairly soon in some fashion.

Jonathan


> * 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(-)
>