linux/drivers/iio/imu
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
..
bmi160 Add 10EC5280 to bmi160_i2c ACPI IDs to allow binding on some devices 2024-02-17 16:16:11 +00:00
bmi323 iio: imu: bmi323: Fix trigger notification in case of error 2024-05-27 09:49:20 +01:00
bno055 Merge 6.8-rc5 into tty-next 2024-02-19 09:06:37 +01:00
inv_icm42600 iio: imu: inv_icm42600: delete unneeded update watermark call 2024-06-02 13:16:02 +01:00
inv_mpu6050 iio: imu: inv_mpu6050: stabilized timestamping in interrupt 2024-06-03 19:05:56 +01:00
st_lsm6dsx iio: imu: st_lsm6dsx: drop casting to void in dev_set_drvdata 2024-03-25 20:10:12 +00:00
st_lsm9ds0 iio: st_sensors: lsm9ds0: Use common style for terminator in ID tables 2024-02-19 19:32:22 +00:00
adis.c iio: imu: adis: Use spi cs inactive delay 2023-11-16 19:10:28 +00:00
adis16400.c iio: imu: Replace all spi->chip_select and spi->cs_gpiod references with function call 2023-03-11 12:34:03 +00:00
adis16460.c iio:imu:adis: Move exports into IIO_ADISLIB namespace 2022-02-18 11:42:26 +00:00
adis16475.c iio:imu: adis16475: Fix sync mode setting 2024-04-06 16:46:02 +01:00
adis16480.c iio: imu: adis16480: make use of irq_get_trigger_type() 2024-02-17 16:16:09 +00:00
adis_buffer.c iio:imu:adis: Move exports into IIO_ADISLIB namespace 2022-02-18 11:42:26 +00:00
adis_trigger.c iio:imu:adis: Move exports into IIO_ADISLIB namespace 2022-02-18 11:42:26 +00:00
fxos8700.h iio: imu: Add support for the FXOS8700 IMU 2019-10-22 10:24:50 +01:00
fxos8700_core.c iio: imu: fxos8700: fix MAGN sensor scale and unit 2023-01-21 18:15:19 +00:00
fxos8700_i2c.c iio: imu: fxos8700: Drop ACPI_PTR() usage 2024-01-23 22:06:55 +00:00
fxos8700_spi.c iio: imu: fxos8700: Drop ACPI_PTR() usage 2024-01-23 22:06:55 +00:00
Kconfig iio: imu: Add driver for BMI323 IMU 2023-11-16 19:10:25 +00:00
kmx61.c iio: imu: kmx61: Drop ACPI_PTR() usage 2024-01-23 22:06:55 +00:00
Makefile iio: imu: Add driver for BMI323 IMU 2023-11-16 19:10:25 +00:00