linux-stable/drivers/iio/imu
Lorenzo Bianconi 2ccc15036d iio: imu: st_lsm6dsx: do not apply ODR configuration in write_raw handler
This patch allows to avoid a transitory that occurs when a given sensor
has been already enabled (e.g. gyroscope) and the user is configuring
the sample frequency of the other one (e.g. accelerometer).
The transitory lasts until the accelerometer is enabled.
During that time slice the gyroscope ODR is incorrectly modified as well.
At the end of the transitory both sensors work at the right frequency.
Fix it introducing st_lsm6dsx_check_odr() routine to check ODR consistency
in write_raw handler in order to apply frequency configuration just
in st_lsm6dsx_set_odr()

Fixes: 290a6ce11d (iio: imu: add support to lsm6dsx driver)
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2017-04-02 14:36:06 +01:00
..
bmi160 Second round of IIO new device support, cleanups and features for the 4.11 cycle 2017-01-23 09:23:23 +01:00
inv_mpu6050 iio:imu:mpu6050 add explicit mpu9250 support 2017-04-02 10:12:08 +01:00
st_lsm6dsx iio: imu: st_lsm6dsx: do not apply ODR configuration in write_raw handler 2017-04-02 14:36:06 +01:00
adis.c iio:adis: Add support for manual self-test flag clear 2016-04-16 13:42:43 +01:00
adis16400.h
adis16400_buffer.c
adis16400_core.c First set of new device support, features and cleanups for IIO in the 4.5 cycle 2015-12-01 09:13:29 -08:00
adis16480.c First set of new device support, features and cleanups for IIO in the 4.5 cycle 2015-12-01 09:13:29 -08:00
adis_buffer.c iio: adis_buffer: Fix out-of-bounds memory access 2015-12-05 17:32:04 +00:00
adis_trigger.c
Kconfig iio: imu: add support to lsm6dsx driver 2017-01-14 12:40:37 +00:00
kmx61.c iio: remove unused gpio consumer.h include 2016-04-03 10:27:47 +01:00
Makefile iio: imu: add support to lsm6dsx driver 2017-01-14 12:40:37 +00:00