WSL2-Linux-Kernel/drivers/iio/imu
Jean-Baptiste Maneyrol 6bd3d6305b iio: imu: inv_icm42600: fix timestamp reset
commit bbaae0c79e upstream.

Timestamp reset is not done in the correct place. It must be done
before enabling buffer. The reason is that interrupt timestamping
is always happening when the chip is on, even if the
corresponding sensor is off. When the sensor restarts, timestamp
is wrong if you don't do a reset first.

Fixes: ec74ae9fd3 ("iio: imu: inv_icm42600: add accurate timestamping")
Signed-off-by: Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@tdk.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20230509152202.245444-1-inv.git-commit@tdk.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-06-09 10:32:28 +02:00
..
bmi160 iio:imu:bmi160: disable regulator in error path 2022-05-09 09:14:31 +02:00
inv_icm42600 iio: imu: inv_icm42600: fix timestamp reset 2023-06-09 10:32:28 +02:00
inv_mpu6050 drivers/iio: Remove all strcpy() uses 2022-08-17 14:23:11 +02:00
st_lsm6dsx iio: imu: st_lsm6dsx: wait for settling time in st_lsm6dsx_read_oneshot 2022-03-02 11:48:04 +01:00
st_lsm9ds0 iio: st-sensors: Remove some unused includes and add some that should be there 2021-07-24 15:59:00 +01:00
Kconfig iio: adis16480: select CONFIG_CRC32 2023-04-13 16:48:21 +02:00
Makefile iio: st_sensors: Add lsm9ds0 IMU support 2021-05-17 13:54:22 +01:00
adis.c iio: adis: add '__adis_enable_irq()' implementation 2022-12-31 13:14:29 +01:00
adis16400.c iio:imu:adis: Move exports into IIO_ADISLIB namespace 2022-12-31 13:14:29 +01:00
adis16460.c iio:imu:adis: Move exports into IIO_ADISLIB namespace 2022-12-31 13:14:29 +01:00
adis16475.c iio:imu:adis: Move exports into IIO_ADISLIB namespace 2022-12-31 13:14:29 +01:00
adis16480.c iio:imu:adis: Move exports into IIO_ADISLIB namespace 2022-12-31 13:14:29 +01:00
adis_buffer.c iio:imu:adis: Move exports into IIO_ADISLIB namespace 2022-12-31 13:14:29 +01:00
adis_trigger.c iio:imu:adis: Move exports into IIO_ADISLIB namespace 2022-12-31 13:14:29 +01:00
fxos8700.h
fxos8700_core.c iio: imu: fxos8700: fix MAGN sensor scale and unit 2023-02-09 11:26:43 +01:00
fxos8700_i2c.c
fxos8700_spi.c
kmx61.c iio: Fix error handling for PM 2022-03-02 11:48:04 +01:00