linux/drivers/iio/imu/inv_mpu6050
Jean-Baptiste Maneyrol 8844ed0a6e iio: imu: inv_mpu6050: stabilized timestamping in interrupt
Use IRQ ONESHOT flag to ensure the timestamp is not updated in the
hard handler during the thread handler. And use a fixed value of 1
sample that correspond to this first timestamp.

This way we can ensure the timestamp is always corresponding to the
value used by the timestamping mechanism. Otherwise, it is possible
that between FIFO count read and FIFO processing the timestamp is
overwritten in the hard handler.

Fixes: 111e1abd00 ("iio: imu: inv_mpu6050: use the common inv_sensors timestamp module")
Cc: stable@vger.kernel.org
Signed-off-by: Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@tdk.com>
Link: https://lore.kernel.org/r/20240527150117.608792-1-inv.git-commit@tdk.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2024-06-03 19:05:56 +01:00
..
inv_mpu_acpi.c iio: imu: inv_mpu6050: move from strlcpy with unused retval to strscpy 2022-08-19 18:23:48 +01:00
inv_mpu_aux.c iio: imu: mpu6050: add level shifter flag 2023-10-05 14:44:06 +01:00
inv_mpu_aux.h iio: imu: inv_mpu6050: helpers for using i2c master on auxiliary bus 2019-10-05 12:06:16 +01:00
inv_mpu_core.c iio: imu: inv_mpu6050: add WoM suspend wakeup with low-power mode 2024-03-25 20:10:13 +00:00
inv_mpu_i2c.c i2c: mux: Remove class argument from i2c_mux_add_adapter() 2024-05-13 16:13:19 +02:00
inv_mpu_iio.h iio: imu: inv_mpu6050: add WoM suspend wakeup with low-power mode 2024-03-25 20:10:13 +00:00
inv_mpu_magn.c drivers/iio: Remove all strcpy() uses 2021-09-14 12:00:30 +01:00
inv_mpu_magn.h iio: imu: inv_mpu6050: fix data polling interface 2020-03-08 17:28:38 +00:00
inv_mpu_ring.c iio: imu: inv_mpu6050: stabilized timestamping in interrupt 2024-06-03 19:05:56 +01:00
inv_mpu_spi.c iio: imu: mpu6050: Add support for the ICM 20600 IMU 2023-05-13 18:57:36 +01:00
inv_mpu_trigger.c iio: imu: inv_mpu6050: stabilized timestamping in interrupt 2024-06-03 19:05:56 +01:00
Kconfig iio: imu: inv_mpu6050: use the common inv_sensors timestamp module 2023-07-20 19:21:29 +01:00
Makefile iio: imu: inv_mpu6050: add MPU925x magnetometer support 2019-10-05 12:14:20 +01:00