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

From: Rupesh Majhi

Date: Sat Oct 03 2026 - 15:54:31 EST


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/20261003185716.32732-1-zoone.rupert@xxxxxxxxx/
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/20261002072526.250081-1-zoone.rupert@xxxxxxxxx/

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
--
2.43.0