linux_dsm_epyc7002/drivers/iio/imu/st_lsm6dsx
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
..
Kconfig iio: imu: st_lsm6dsx: add support to lsm6ds3h 2017-02-04 12:25:05 +00:00
Makefile iio: imu: add support to lsm6dsx driver 2017-01-14 12:40:37 +00:00
st_lsm6dsx_buffer.c iio: imu: st_lsm6dsx: Remove unnecessary cast on void pointer 2017-04-02 09:51:45 +01:00
st_lsm6dsx_core.c iio: imu: st_lsm6dsx: do not apply ODR configuration in write_raw handler 2017-04-02 14:36:06 +01:00
st_lsm6dsx_i2c.c iio: imu: st_lsm6dsx: add support to lsm6ds3h 2017-02-04 12:25:05 +00:00
st_lsm6dsx_spi.c iio: imu: st_lsm6dsx: add support to lsm6ds3h 2017-02-04 12:25:05 +00:00
st_lsm6dsx.h iio: imu: st_lsm6dsx: add support to lsm6ds3h 2017-02-04 12:25:05 +00:00