Skip to content

iio: pressure: dps310: hardware FIFO support

Rupesh Majhi linux-iio lkml llvm 10 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v12 Latest5 patches 2 repliesIn review
  2. v115 patches 7 repliesSuperseded
  3. v104 patches 5 repliesSuperseded
Earlier versions · 7
VersionPostedPatchesRepliesStatus
v93 patches3 repliesSuperseded
v810 patches7 repliesApplied
v710 patches9 repliesSuperseded
v66 patches17 repliesSuperseded
v53 patches6 repliesSuperseded
v31 patch6 repliesSuperseded
v11 patch1 replySuperseded

Changes in v12 from the cover letter

- patch 1: blank line, Reviewed-by Andy
- patch 2: guard() in postenable, setup moved to a helper that kfree()s on error, scoped_guard() in fifo_work, loop counters in the for, ternary on one line, two comments trimmed. The first loop in fifo_drain keeps cnt outside, it is used after the loop.
- patch 3: signature wrapped
- patch 4: drain comment and commit message trimmed
- patch 5: Suggested-by Andy back, assert in the new helper too, still optional

Patches in v12 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5iio: pressure: dps310: use devm_mutex_init()drivers/iio/pressure/dps310.c+5 -10 replies
2/5iio: pressure: dps310: read buffered samples from the hardware FIFOdrivers/iio/pressure/dps310.c+325 -100 replies
3/5iio: pressure: dps310: derive the drain interval from the watermarkdrivers/iio/pressure/dps310.c+32 -40 replies
4/5iio: pressure: dps310: implement .hwfifo_flush_to_buffer()drivers/iio/pressure/dps310.c+32 -30 replies
5/5iio: pressure: dps310: assert the lock at runtime toodrivers/iio/pressure/dps310.c+43 -00 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchAndy Shevchenko
1/5R-b
2/5
3/5
4/5
5/5

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

Read the v12 thread

Cover letter [PATCH v12 0/5] iio: pressure: dps310: hardware FIFO support

Rest of FIFO series, on iio/togreg which has 1-6 and 10 of v8.

Since v11:
- patch 1: blank line, Reviewed-by Andy
- patch 2: guard() in postenable, setup moved to a helper that kfree()s on error, scoped_guard() in fifo_work, loop counters in the for, ternary on one line, two comments trimmed. The first loop in fifo_drain keeps cnt outside, it is used after the loop.
- patch 3: signature wrapped
- patch 4: drain comment and commit message trimmed
- patch 5: Suggested-by Andy back, assert in the new helper too, still optional

Pressure overflow fix is now at v4:
https://lore.kernel.org/linux-iio/[email protected]/
Patches 1 and 5 conflict trivially with it. I can rebase on whichever goes in first.

Retested on DPS310 with BeagleBone Black. Lockdep run under QEMU.

v11: https://lore.kernel.org/linux-iio/[email protected]/

Rupesh Majhi (5):
iio: pressure: dps310: use devm_mutex_init()
iio: pressure: dps310: read buffered samples from the hardware FIFO
iio: pressure: dps310: derive the drain interval from the watermark
iio: pressure: dps310: implement .hwfifo_flush_to_buffer()
iio: pressure: dps310: assert the lock at runtime too

 drivers/iio/pressure/dps310.c | 441 +++++++++++++++++++++++++++++++++-
 1 file changed, 430 insertions(+), 11 deletions(-)

base-commit: a3b3580713f3ac5a32dc2874ee546828977a1d68

Signature · 1 line
2.43.0