linux/drivers/iio/imu
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
..
bmi160 iio:imu:bmi160: Fix alignment and data leak issues 2020-12-03 19:40:28 +00:00
inv_icm42600 iio: imu: inv_icm42600: add accurate timestamping 2020-06-27 14:24:42 +01:00
inv_mpu6050 iio:imu:inv_mpu6050: Use regmap_noinc_read for fifo reads. 2020-09-21 20:01:51 +01:00
st_lsm6dsx iio: imu: st_lsm6dsx: fix edge-trigger interrupts 2020-12-03 19:40:31 +00:00
Kconfig iio: imu: add Kconfig and Makefile for inv_icm42600 driver 2020-06-27 14:20:25 +01:00
Makefile iio: imu: add Kconfig and Makefile for inv_icm42600 driver 2020-06-27 14:20:25 +01:00
adis.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
adis16400.c iio: adis16400: Drop adis_burst usage 2020-09-21 20:01:45 +01:00
adis16460.c iio: adis16460: Use Managed device functions 2020-09-16 19:06:09 +01:00
adis16475.c iio: adis16475: Drop adis_burst usage 2020-09-21 20:01:45 +01:00
adis16480.c iio: adis16480: Use Managed device functions 2020-09-16 19:06:09 +01:00
adis_buffer.c iio: adis: Move burst mode into adis_data 2020-09-21 20:01:45 +01:00
adis_trigger.c iio: adis: Drop non Managed device functions 2020-09-16 19:06:10 +01:00
fxos8700.h iio: imu: Add support for the FXOS8700 IMU 2019-10-22 10:24:50 +01:00
fxos8700_core.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
fxos8700_i2c.c iio: imu: Add support for the FXOS8700 IMU 2019-10-22 10:24:50 +01:00
fxos8700_spi.c iio: imu: Add support for the FXOS8700 IMU 2019-10-22 10:24:50 +01:00
kmx61.c iio:trigger: rename try_reenable() to reenable() plus return void 2020-12-03 19:40:26 +00:00