linux/drivers/iio/imu/inv_mpu6050
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
..
inv_mpu_acpi.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
inv_mpu_aux.c iio: imu: inv_mpu6050: helpers for using i2c master on auxiliary bus 2019-10-05 12:06:16 +01:00
inv_mpu_aux.h iio: imu: inv_mpu6050: helpers for using i2c master on auxiliary bus 2019-10-05 12:06:16 +01:00
inv_mpu_core.c iio: imu: inv_mpu6050: fix suspend/resume with runtime power 2020-04-19 17:50:02 +01:00
inv_mpu_i2c.c iio: imu: inv_mpu6050: set power on/off only once during all init 2020-03-08 17:28:37 +00:00
inv_mpu_iio.h iio: imu: inv_mpu6050: use runtime pm with autosuspend 2020-03-08 17:28:39 +00:00
inv_mpu_magn.c iio: imu: inv_mpu6050: fix data polling interface 2020-03-08 17:28:38 +00:00
inv_mpu_magn.h iio: imu: inv_mpu6050: fix data polling interface 2020-03-08 17:28:38 +00:00
inv_mpu_ring.c iio: imu: inv_mpu6050: factorize fifo enable/disable 2020-03-08 17:28:39 +00:00
inv_mpu_spi.c iio: imu: inv_mpu6050: set power on/off only once during all init 2020-03-08 17:28:37 +00:00
inv_mpu_trigger.c iio: imu: inv_mpu6050: use runtime pm with autosuspend 2020-03-08 17:28:39 +00:00
Kconfig iio: imu: inv_mpu6050: add support of ICM20690 2020-02-14 15:06:25 +00:00
Makefile iio: imu: inv_mpu6050: add MPU925x magnetometer support 2019-10-05 12:14:20 +01:00