[PATCH 0/3] iio: pressure: dps310: fix input checks and resets
From: Rupesh Majhi
Date: Thu Oct 29 2026 - 18:07:01 EST
Sashiko flagged these as pre-existing in its review of the FIFO series
v8 [1]. All three reproduce on a DPS310 on a BeagleBone Black:
- 0 or 0.5 written to a rate or ratio is accepted. Ratio 0 puts a
reserved value in the register: pressure reads fail with -ERANGE,
temperature reads 974 C.
- A warm reboot during a FIFO capture leaves FIFO_EN set. After it,
every raw read times out until the driver is unbound.
- The reset after a read timeout silently puts the rate and ratio back
to their defaults.
Patch 2 fixes a commit that is only in iio testing so far.
Paulius, patch 2 also resets the ZTS8032 at probe, the same reset that
remove already does. A Tested-by would be welcome if you have time.
Based on iio testing. Reproduced and fixed with help from an LLM coding
assistant.
[1] https://sashiko.dev/#/patchset/20260921183132.233136-1-zoone.rupert%40gmail.com
Cc: Paulius Zaleckas <paulius.zaleckas@xxxxxxxxx>
Rupesh Majhi (3):
iio: pressure: dps310: reject a zero rate or oversampling ratio
iio: pressure: dps310: reset the chip at probe
iio: pressure: dps310: keep the user's settings across a timeout reset
drivers/iio/pressure/dps310.c | 38 ++++++++++++++++++++++++++---------
1 file changed, 28 insertions(+), 10 deletions(-)
base-commit: 7d80b4b383bc53b48abd3a30ca4a91cdab568bfa
--
2.43.0