Skip to content

iio: accel: adxl345: add FIFO operating with IRQ triggered watermark events

Lothar Rubusch linux-iio lkml 9 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v9 Latest4 patches 8 repliesIn review
  2. v87 patches 10 repliesApplied
  3. v77 patches 20 repliesApplied
Earlier versions · 6
VersionPostedPatchesRepliesStatus
v67 patches9 repliesSuperseded
v510 patches27 repliesSuperseded
v410 patches2 repliesSuperseded
v310 patches2 repliesSuperseded
v222 patches26 repliesSuperseded
v122 patches0 repliesSuperseded

Changes in v9 from the cover letter

- move FIELD_PREP() usage to a local usage in adxl345_core.c
- remove ADXL345_{SD}_TAP_MSK macros

Patches in v9 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4iio: accel: adxl345: introduce interrupt handlingdrivers/iio/accel/adxl345_core.c+16 -00 replies
2/4iio: accel: adxl345: initialize FIFO delay value for SPIdrivers/iio/accel/adxl345.h drivers/iio/accel/adxl345_core.c drivers/iio/accel/adxl345_i2c.c +1 more+18 -31 reply
3/4iio: accel: adxl345: add FIFO with watermark eventsdrivers/iio/accel/adxl345.h drivers/iio/accel/adxl345_core.c+322 -112 replies
4/4iio: accel: adxl345: complete the list of definesdrivers/iio/accel/adxl345.h+48 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v9 yet.

Read the v9 thread

Cover letter [PATCH v9 0/4] iio: accel: adxl345: add FIFO operating with IRQ triggered watermark events

The adxl345 sensor offers several features. Most of them are based on using the hardware FIFO and reacting on events coming in on an interrupt line. Add access to configure and read out the FIFO, handling of interrupts and configuration and application of the watermark feature on that FIFO.

---
v8 -> v9:
- move FIELD_PREP() usage to a local usage in adxl345_core.c
- remove ADXL345_{SD}_TAP_MSK macros
v7 -> v8:
- remove dt-binding quotation marks
- add DMA alignment
- fix indention, formatting and text alignment
v6 -> v7:
- reorder dt-binding patches
- extracted FIFO specific from constants list
- reorder constants list in header patch to the end
- verify watermark input is within valid range
v5 -> v6:
- dropped justify patch, since unnecessary change to format mask
- added separate dt-bindings patch to remove required interrupts property
- merged FIFO watermark patches
- reworked bitfield handling
- group irq setup in probe()
- several type fixes by smatch and tools
v4 -> v5:
- fix dt-binding for enum array of INT1 and INT2
v3 -> v4:
- fix dt-binding indention
v2 -> v3:
- reorganize commits, merge the watermark handling
- INT lines are defined by binding
- kfifo is prepared by devm_iio_kfifo_buffer_setup()
- event handler is registered w/ devm_request_threaded_irq() v1 -> v2:
Fix comments according to Documentation/doc-guide/kernel-doc.rst and missing static declaration of function.
---
Lothar Rubusch (4):
iio: accel: adxl345: introduce interrupt handling
iio: accel: adxl345: initialize FIFO delay value for SPI
iio: accel: adxl345: add FIFO with watermark events
iio: accel: adxl345: complete the list of defines

 drivers/iio/accel/adxl345.h      |  77 +++++--
 drivers/iio/accel/adxl345_core.c | 338 ++++++++++++++++++++++++++++++-
 drivers/iio/accel/adxl345_i2c.c  |   2 +-
 drivers/iio/accel/adxl345_spi.c  |   7 +-
 4 files changed, 404 insertions(+), 20 deletions(-)
Signature · 1 line
2.39.5