linux-yocto/drivers/iio/gyro
Carlos Song 7bc7e9d6bd iio: gyro: fxas21002c: Fix missing data update in trigger handler
commit fa13ac6cdf upstream.

The fxas21002c_trigger_handler() may fail to acquire sample data because
the runtime PM enters the autosuspend state and sensor can not return
sample data in standby mode..

Resume the sensor before reading the sample data into the buffer within the
trigger handler. After the data is read, place the sensor back into the
autosuspend state.

Fixes: a0701b6263 ("iio: gyro: add core driver for fxas21002c")
Signed-off-by: Carlos Song <carlos.song@nxp.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20241116152945.4006374-1-Frank.Li@nxp.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-01-17 13:34:46 +01:00
..
adis16080.c
adis16130.c
adis16136.c
adis16260.c
adxrs290.c
adxrs450.c
bmg160_core.c
bmg160_i2c.c
bmg160_spi.c
bmg160.h
fxas21002c_core.c
fxas21002c_i2c.c
fxas21002c_spi.c
fxas21002c.h
hid-sensor-gyro-3d.c
itg3200_buffer.c
itg3200_core.c
Kconfig
Makefile
mpu3050-core.c
mpu3050-i2c.c
mpu3050.h
ssp_gyro_sensor.c
st_gyro_buffer.c
st_gyro_core.c
st_gyro_i2c.c
st_gyro_spi.c
st_gyro.h