linux/drivers/iio/imu/st_lsm6dsx
Lorenzo Bianconi 3f9bce7a22 iio: imu: st_lsm6dsx: fix edge-trigger interrupts
If we are using edge IRQs, new samples can arrive while processing
current interrupt since there are no hw guarantees the irq line
stays "low" long enough to properly detect the new interrupt.
In this case the new sample will be missed.
Polling FIFO status register in st_lsm6dsx_handler_thread routine
allow us to read new samples even if the interrupt arrives while
processing previous data and the timeslot where the line is "low"
is too short to be properly detected.

Fixes: 89ca88a7cd ("iio: imu: st_lsm6dsx: support active-low interrupts")
Fixes: 290a6ce11d ("iio: imu: add support to lsm6dsx driver")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://lore.kernel.org/r/5e93cda7dc1e665f5685c53ad8e9ea71dbae782d.1605378871.git.lorenzo@kernel.org
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2020-12-03 19:40:31 +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_buffer.c iio: imu: st_lsm6dsx: add support to LSM6DSOP 2020-12-03 19:40:24 +00:00
st_lsm6dsx_core.c iio: imu: st_lsm6dsx: fix edge-trigger interrupts 2020-12-03 19:40:31 +00:00
st_lsm6dsx_i2c.c iio: imu: st_lsm6dsx: add support to LSM6DSOP 2020-12-03 19:40:24 +00:00
st_lsm6dsx_i3c.c iio: imu: st_lsm6dsx: add i3c basic support for LSM6DSO and LSM6DSR 2019-07-27 22:55:27 +01: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: add support to LSM6DSOP 2020-12-03 19:40:24 +00:00
st_lsm6dsx.h iio: imu: st_lsm6dsx: add support to LSM6DSOP 2020-12-03 19:40:24 +00:00