OpenCloudOS-Kernel/drivers/iio/imu
Jean-Baptiste Maneyrol 0a2bf9200a iio: imu: inv_mpu6050: fix suspend/resume with runtime power
Suspend/resume were not working correctly with pm runtime.
Now suspend check if the chip is already suspended, and
resume put runtime pm in the correct state.

Issues seen prior to this were:

When entering suspend, there was an error in logs because we
were disabling vddio regulator although it was already disabled.
And when resuming, the chip was pull back to full power but the
pm_runtime state was not updated. So it was believing it was
still suspended.

Fixes: 4599cac846 ("iio: imu: inv_mpu6050: use runtime pm with autosuspend")
Signed-off-by: Jean-Baptiste Maneyrol <jmaneyrol@invensense.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2020-04-19 17:50:02 +01:00
..
bmi160 treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
inv_mpu6050 iio: imu: inv_mpu6050: fix suspend/resume with runtime power 2020-04-19 17:50:02 +01:00
st_lsm6dsx iio: imu: st_lsm6dsx: flush hw FIFO before resetting the device 2020-04-19 17:50:01 +01:00
Kconfig iio: imu: Add support for the FXOS8700 IMU 2019-10-22 10:24:50 +01:00
Makefile iio: imu: Add support for the FXOS8700 IMU 2019-10-22 10:24:50 +01:00
adis.c iio: imu: adis: add support product ID check in adis_initial_startup 2020-03-08 17:28:31 +00:00
adis16400.c iio: imu: adis: Add self_test_reg variable 2020-03-08 17:28:30 +00:00
adis16460.c iio: adis16460: Make use of __adis_initial_startup 2020-03-08 17:28:31 +00:00
adis16480.c iio: adis16480: Make use of __adis_initial_startup 2020-03-08 17:28:31 +00:00
adis_buffer.c iio: imu: adis_buffer: Use new structure for SPI transfer delays 2020-03-08 17:28:45 +00:00
adis_trigger.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 149 2019-05-30 11:25:18 -07:00
fxos8700.h iio: imu: Add support for the FXOS8700 IMU 2019-10-22 10:24:50 +01:00
fxos8700_core.c iio: imu: Add support for the FXOS8700 IMU 2019-10-22 10:24:50 +01:00
fxos8700_i2c.c iio: imu: Add support for the FXOS8700 IMU 2019-10-22 10:24:50 +01:00
fxos8700_spi.c iio: imu: Add support for the FXOS8700 IMU 2019-10-22 10:24:50 +01:00
kmx61.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 330 2019-06-05 17:37:06 +02:00