WSL2-Linux-Kernel/drivers/iio/imu/st_lsm6dsx
Lorenzo Bianconi 1f05c75684 iio: imu: st_lsm6dsx: wait for settling time in st_lsm6dsx_read_oneshot
commit ea85bf9064 upstream.

We need to wait for sensor settling time (~ 3/ODR) before reading data
in st_lsm6dsx_read_oneshot routine in order to avoid corrupted samples.

Fixes: 290a6ce11d ("iio: imu: add support to lsm6dsx driver")
Reported-by: Mario Tesi <mario.tesi@st.com>
Tested-by: Mario Tesi <mario.tesi@st.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://lore.kernel.org/r/b41ebda5535895298716c76d939f9f165fcd2d13.1644098120.git.lorenzo@kernel.org
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-03-02 11:48:04 +01:00
..
Kconfig iio: imu: st_lsm6dsx: add support to LSM6DSOP 2020-12-03 19:40:24 +00:00
Makefile
st_lsm6dsx.h iio: imu: st_lsm6dsx: add support to LSM6DSOP 2020-12-03 19:40:24 +00:00
st_lsm6dsx_buffer.c iio: make use of devm_iio_kfifo_buffer_setup() helper 2021-03-11 20:47:01 +00:00
st_lsm6dsx_core.c iio: imu: st_lsm6dsx: wait for settling time in st_lsm6dsx_read_oneshot 2022-03-02 11:48:04 +01:00
st_lsm6dsx_i2c.c iio: imu: st_lsm6dsx: Drop unneeded explicit castings 2021-03-25 19:13:50 +00:00
st_lsm6dsx_i3c.c iio: imu: st_lsm6dsx: Drop unneeded explicit castings 2021-03-25 19:13:50 +00:00
st_lsm6dsx_shub.c iio: imu: st_lsm6dsx: set 10ms as min shub slave timeout 2020-11-01 20:54:15 +00:00
st_lsm6dsx_spi.c iio: imu: st_lsm6dsx: Drop unneeded explicit castings 2021-03-25 19:13:50 +00:00