linux-stable/drivers/iio/imu/st_lsm6dsx
Lorenzo Bianconi 3a63da26db iio: imu: st_lsm6dsx: flush hw FIFO before resetting the device
flush hw FIFO before device reset in order to avoid possible races
on interrupt line 1. If the first interrupt line is asserted during
hw reset the device will work in I3C-only mode (if it is supported)

Fixes: 801a6e0af0 ("iio: imu: st_lsm6dsx: add support to LSM6DSO")
Fixes: 43901008fd ("iio: imu: st_lsm6dsx: add support to LSM6DSR")
Reported-by: Mario Tesi <mario.tesi@st.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Reviewed-by: Vitor Soares <vitor.soares@synopsys.com>
Tested-by: Vitor Soares <vitor.soares@synopsys.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2020-04-19 17:50:01 +01:00
..
Kconfig iio: imu: st_lsm6dsx: add support to LSM6DSRX 2019-10-27 16:38:06 +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: specify slave odr in slv_odr 2020-03-28 16:35:03 +00:00
st_lsm6dsx_buffer.c iio: imu: st_lsm6dsx: fix read misalignment on untagged FIFO 2020-03-28 16:35:02 +00:00
st_lsm6dsx_core.c iio: imu: st_lsm6dsx: flush hw FIFO before resetting the device 2020-04-19 17:50:01 +01:00
st_lsm6dsx_i2c.c iio: st_lsm6dsx: Drop unneeded OF code 2019-12-29 15:20:04 +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: specify slave odr in slv_odr 2020-03-28 16:35:03 +00:00
st_lsm6dsx_spi.c iio: st_lsm6dsx: Drop unneeded OF code 2019-12-29 15:20:04 +00:00