OpenCloudOS-Kernel/drivers/iio/imu/st_lsm6dsx
Lorenzo Bianconi ea85bf9064 iio: imu: st_lsm6dsx: wait for settling time in st_lsm6dsx_read_oneshot
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>
2022-02-07 20:45:49 +00:00
..
Kconfig iio: imu: st_lsm6dsx: add support to LSM6DSOP 2020-12-03 19:40:24 +00:00
Makefile iio: imu: st_lsm6dsx: add i3c basic support for LSM6DSO and LSM6DSR 2019-07-27 22:55:27 +01:00
st_lsm6dsx.h iio: imu: st_lsm6dsx: move max_fifo_size in st_lsm6dsx_fifo_ops 2021-10-19 08:27:34 +01: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-02-07 20:45:49 +00: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