Skip to content

iio: Add output buffer support

Mihail Chindris linux-devicetree linux-iio lkml 3 versions – Applied

Status from this message: Applied this one to the fixes-togreg branch of iio.git and marked it for stable.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest6 patches 11 repliesApplied
  2. v56 patches 10 repliesSuperseded
  3. v46 patches 16 repliesSuperseded

Changes in v6 from the cover letter

* https://lore.kernel.org/all/[email protected]
* Fix check in iio_update_buffers adding test on insert_buffer
* Return if check in iio_update_buffers fails.
* Fix length typo
* Add rb->direction check in both read and write functions.
* Add fixes tags
* Add Reviewed-by: Alexandru Ardelean <[email protected]> line
* Remove unnecessary (u8 *) cast
* Remove unnecessary AD5766_NUM_CH define

Patches in v6 Applied

#Subject and filesSizeRepliesApplied
1/6iio: Add output buffer supportdrivers/iio/iio_core.h drivers/iio/industrialio-buffer.c drivers/iio/industrialio-core.c +2 more+148 -26 replies
2/6iio: kfifo-buffer: Add output buffer supportdrivers/iio/buffer/kfifo_buf.c+50 -00 replies
3/6iio: triggered-buffer: extend support to configure output buffersdrivers/iio/accel/adxl372.c drivers/iio/accel/bmc150-accel-core.c drivers/iio/adc/at91-sama5d2_adc.c +4 more+25 -101 reply
4/6drivers: iio: dac: ad5766: Fix dt property namedrivers/iio/dac/ad5766.c+3 -31 reply
5/6Documentation:devicetree:bindings:iio:dac: Fix valDocumentation/devicetree/bindings/iio/dac/adi,ad5766.yaml+1 -11 reply
6/6drivers:iio:dac:ad5766.c: Add trigger bufferdrivers/iio/dac/ad5766.c+42 -01 reply

Reviews trailers per patch

3 of 6 patches have a Reviewed-by or Acked-by.

PatchAlexandru Ardelean
1/6
2/6
3/6
4/6R-b
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [PATCH v6 0/6] iio: Add output buffer support

Changelog v5 -> v6:
* https://lore.kernel.org/all/[email protected]
* Fix check in iio_update_buffers adding test on insert_buffer
* Return if check in iio_update_buffers fails.
* Fix length typo
* Add rb->direction check in both read and write functions.
* Add fixes tags
* Add Reviewed-by: Alexandru Ardelean <[email protected]> line
* Remove unnecessary (u8 *) cast
* Remove unnecessary AD5766_NUM_CH define

Changelog v4 -> v5:
* https://lore.kernel.org/all/[email protected]
* Remove ad3552r example from series and replace with the update of an existing driver: ad5662. Will add ad3552r in other another series.
* Make normal comment from kernel-doc comment. (A bot was complaining about that)
* Add indio_dev->info check
* Rename iio_buffer_remove_sample -> iio_pop_from_buffer
* Fix comment of remove_from: sample -> scan
* Change iio_pop_from_buffer data type to void * to be consistent with iio_push_to_buffers
* Remove use watermark, in our kernel is not used and I can't think of an usecase for it.
* Reimplement write to increment buffer index and handle blocking and noblocking calls
* Move if (insert_buffer->direction == IIO_BUFFER_DIRECTION_OUT) outside lock
* Remove redundant checks of if (insert_buffer->direction == IIO_BUFFER_DIRECTION_OUT)

Alexandru Ardelean (1):
iio: triggered-buffer: extend support to configure output buffers

Lars-Peter Clausen (1):
iio: kfifo-buffer: Add output buffer support

Mihail Chindris (4):
iio: Add output buffer support
drivers: iio: dac: ad5766: Fix dt property name Documentation:devicetree:bindings:iio:dac: Fix val drivers:iio:dac:ad5766.c: Add trigger buffer

 .../bindings/iio/dac/adi,ad5766.yaml          |   2 +-
 drivers/iio/accel/adxl372.c                   |   1 +
 drivers/iio/accel/bmc150-accel-core.c         |   1 +
 drivers/iio/adc/at91-sama5d2_adc.c            |   4 +-
 .../buffer/industrialio-triggered-buffer.c    |   8 +-
 drivers/iio/buffer/kfifo_buf.c                |  50 +++++++
 .../cros_ec_sensors/cros_ec_sensors_core.c    |   5 +-
 .../common/hid-sensors/hid-sensor-trigger.c   |   5 +-
 drivers/iio/dac/ad5766.c                      |  48 ++++++-
 drivers/iio/iio_core.h                        |   4 +
 drivers/iio/industrialio-buffer.c             | 127 +++++++++++++++++-
 drivers/iio/industrialio-core.c               |   1 +
 include/linux/iio/buffer.h                    |   7 +
 include/linux/iio/buffer_impl.h               |  11 ++
 include/linux/iio/triggered_buffer.h          |  11 +-
 15 files changed, 269 insertions(+), 16 deletions(-)

base-commit: 94a853eca720ac9e385e59f27e859b4a01123f58

Signature · 1 line
2.27.0