linux/drivers/iio/gyro
Carlos Song 07e07fbc77 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>
History 2025-01-17 13:40:57 +01:00
..
adis16080.c iio: gyro: adis16080: Fix alignment for DMA safety 2022-06-14 11:53:18 +01:00
adis16130.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
adis16136.c iio: gyro: adis16260: make use of the new lock helpers 2024-06-25 21:04:49 +01:00
adis16260.c iio: gyro: adis16260: make use of the new lock helpers 2024-06-25 21:04:50 +01:00
adxrs290.c iio: gyro: adxrs290: fix data signedness 2021-11-21 11:29:50 +00:00
adxrs450.c iio: gyro: adxrs450: Fix alignment for DMA safety 2022-06-14 11:53:18 +01:00
bmg160.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
bmg160_core.c iio: gyro: bmg160_core: make use of regmap_clear_bits() 2024-06-25 21:04:46 +01:00
bmg160_i2c.c iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
bmg160_spi.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
fxas21002c.h iio: gyro: fxas21002c: Move 'fxas21002c_reg_fields' to the only file its used 2020-07-20 09:03:25 +01:00
fxas21002c_core.c iio: gyro: fxas21002c: Fix missing data update in trigger handler 2025-01-17 13:40:57 +01:00
fxas21002c_i2c.c iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
fxas21002c_spi.c iio: gyro: fxas210002c: Move exports to IIO_FXAS210002C namespace. 2022-11-23 19:44:00 +00:00
hid-sensor-gyro-3d.c iio: gyro: hid-sensor-gyro-3d: Convert to platform remove callback returning void 2023-09-23 15:06:55 +01:00
itg3200_buffer.c iio: itg3200: Call iio_trigger_notify_done() on error 2021-11-17 17:52:36 +00:00
itg3200_core.c iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
Kconfig iio: st_sensors: don't always auto-enable I2C and SPI interface drivers 2022-01-23 18:03:35 +00:00
Makefile iio: gyro: Add driver support for ADXRS290 2020-08-22 10:53:20 +01:00
mpu3050-core.c iio: gyro: mpu3050-core: make use of regmap_clear_bits(), regmap_set_bits() 2024-06-25 21:04:46 +01:00
mpu3050-i2c.c i2c: mux: Remove class argument from i2c_mux_add_adapter() 2024-05-13 16:13:19 +02:00
mpu3050.h iio: gyro: mpu3050: Make mpu3050_common_remove() return void 2022-05-01 19:01:13 +01:00
ssp_gyro_sensor.c iio: core: Simplify the registration of kfifo buffers 2022-04-10 16:25:46 +01:00
st_gyro.h iio: gyro: st_gyro: use devm_iio_triggered_buffer_setup() for buffer 2021-07-24 16:35:05 +01:00
st_gyro_buffer.c iio:st-sensors: Remove duplicate MODULE_* 2022-02-18 11:36:54 +00:00
st_gyro_core.c iio: st_sensors: Stop abusing mlock to ensure internal coherency 2022-04-10 16:21:45 +01:00
st_gyro_i2c.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
st_gyro_spi.c iio:st-sensors: Move exports into IIO_ST_SENSORS namespace 2022-02-18 11:36:54 +00:00