Skip to content

RFC spawn hrtimer trigger from client driver upon enabling buffer

Marc Titinger linux-iio lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest9 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9configfs: Allow dynamic group creationfs/configfs/dir.c include/linux/configfs.h+120 -00 replies
2/9iio: core: Introduce IIO configfs supportdrivers/iio/Kconfig drivers/iio/Makefile drivers/iio/industrialio-configfs.c+59 -00 replies
3/9iio: core: Introduce IIO software triggersdrivers/iio/Kconfig drivers/iio/Makefile drivers/iio/industrialio-sw-trigger.c +1 more+263 -00 replies
4/9iio: trigger: Introduce IIO hrtimer based triggerdrivers/iio/trigger/Kconfig drivers/iio/trigger/Makefile drivers/iio/trigger/iio-trig-hrtimer.c+205 -00 replies
5/9iio: Documentation: Add IIO configfs documentationDocumentation/ABI/testing/configfs-iio Documentation/iio/iio_configfs.txt+114 -04 replies
6/9iio: ina2xx: add direct IO support for TI INA2xx Power Monitorsdrivers/iio/adc/Kconfig drivers/iio/adc/Makefile drivers/iio/adc/ina2xx-iio.c+525 -03 replies
7/9iio: ina2xx: add triggered bufferdrivers/iio/adc/Kconfig drivers/iio/adc/ina2xx-iio.c+77 -00 replies
8/9iio: buffer: allow for last-second trigger spawning from device driverdrivers/iio/industrialio-buffer.c include/linux/iio/iio.h+8 -03 replies
9/9iio: (RFC) illustrate creation/destruction of hrtimer trigger upon buffer enabledrivers/iio/adc/ina2xx-iio.c+73 -10 replies

Reviews trailers per patch

2 of 9 patches have a Reviewed-by or Acked-by.

PatchChristoph HellwigJoel BeckerMatt RanostayCrt Mori
1/9R-b A-b
2/9T-b
3/9
4/9
5/9A-b
6/9
7/9
8/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [RFC 0/9] spawn hrtimer trigger from client driver upon enabling buffer

this builds upon the sw-trigger / hrtimer series from Daniel[1] in order to create the trigger upon enabling the buffer when the sampling frequency is known. This is useful for devices without hardware streaming scheme, to avoid the complexity of creating a separate trigger through configfs, and then setting the sw-trigger frequency from both device0 and the trigger.

[1]: https://lkml.org/lkml/2015/10/23/369

Daniel Baluta (5):
configfs: Allow dynamic group creation
iio: core: Introduce IIO configfs support
iio: core: Introduce IIO software triggers
iio: trigger: Introduce IIO hrtimer based trigger
iio: Documentation: Add IIO configfs documentation

Marc Titinger (4):
iio: ina2xx: add direct IO support for TI INA2xx Power Monitors
iio: ina2xx: add triggered buffer
iio: buffer: allow for last-second trigger spawning from device driver
iio: (RFC) illustrate creation/destruction of hrtimer trigger upon
buffer enable

 Documentation/ABI/testing/configfs-iio |  21 ++
 Documentation/iio/iio_configfs.txt     |  93 +++++
 drivers/iio/Kconfig                    |  16 +
 drivers/iio/Makefile                   |   2 +
 drivers/iio/adc/Kconfig                |  12 +
 drivers/iio/adc/Makefile               |   1 +
 drivers/iio/adc/ina2xx-iio.c           | 661 +++++++++++++++++++++++++++++++++
 drivers/iio/industrialio-buffer.c      |   5 +
 drivers/iio/industrialio-configfs.c    |  50 +++
 drivers/iio/industrialio-sw-trigger.c  | 183 +++++++++
 drivers/iio/trigger/Kconfig            |  10 +
 drivers/iio/trigger/Makefile           |   2 +
 drivers/iio/trigger/iio-trig-hrtimer.c | 193 ++++++++++
 fs/configfs/dir.c                      | 110 ++++++
 include/linux/configfs.h               |  10 +
 include/linux/iio/iio.h                |   3 +
 include/linux/iio/sw_trigger.h         |  71 ++++
 17 files changed, 1443 insertions(+)
 create mode 100644 Documentation/ABI/testing/configfs-iio
 create mode 100644 Documentation/iio/iio_configfs.txt
 create mode 100644 drivers/iio/adc/ina2xx-iio.c
 create mode 100644 drivers/iio/industrialio-configfs.c
 create mode 100644 drivers/iio/industrialio-sw-trigger.c
 create mode 100644 drivers/iio/trigger/iio-trig-hrtimer.c
 create mode 100644 include/linux/iio/sw_trigger.h
Signature · 1 line
1.9.1