[PATCH 0/2] iio: common: improve InvenSense sample timestamping

From: Jean-Baptiste Maneyrol via B4 Relay

Date: Fri Jul 17 2026 - 08:42:41 EST


This series improves the InvenSense timestamping mechanism for 2 cases:
when using watermark and for high frequency sampling.

Data arriving by batch because of FIFO watermark will now be all aligned
correctly with the interrupt timestamp and the chip period measurement
will use a minimal period of 20ms to ensure that system latency is
not preventing measurement when using high frequency sampling.

This was tested using inv_icm42600 driver when using maximum FIFO
watermark and when using 1kHz sampling frequency.

Signed-off-by: Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@xxxxxxx>
---
Jean-Baptiste Maneyrol (2):
iio: invensense: better timestamp alignment when using watermark
iio: invensense: improve period measurement by using a longer delay

.../iio/common/inv_sensors/inv_sensors_timestamp.c | 86 +++++++++++-----------
include/linux/iio/common/inv_sensors_timestamp.h | 6 ++
2 files changed, 51 insertions(+), 41 deletions(-)
---
base-commit: aa58ecc73466d0cb8c418de98e2225490bf600e3
change-id: 20260715-iio-common-inv-sensors-timestamp-rework-acf1a0aa00f4

Best regards,
--
Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@xxxxxxx>