linux/drivers/iio/imu/inv_mpu6050
Jonathan Cameron 40b54cbebf iio: imu: mpu6050: Balance runtime pm + use pm_runtime_resume_and_get()
Remove an unblanced pm_runtime_put_sync_suspend() call
in inv_pu_pm_disable().  Not this call is not a bug, because the runtime
pm core will not allow the reference counter to go negative.  It is
however confusing and serves no purpose.

pm_runtime_resume_and_get() case found using coccicheck script under
review at:
https://lore.kernel.org/lkml/20210427141946.2478411-1-Julia.Lawall@inria.fr/

pm_runtime_resume_and_get() returns <= 0 only so simplify related checks
to bring this more inline with nearby calls.

This is a prequel to taking a closer look at the runtime pm in IIO drivers
in general.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Jean-Baptiste Maneyrol <jmaneyrol@invensense.com>
Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/20210516162103.1332291-2-jic23@kernel.org
2021-06-16 14:53:13 +01:00
..
inv_mpu_acpi.c iio: imu: inv_mpu6050: Drop double check for ACPI companion device 2020-06-14 11:49:32 +01: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: mpu6050: Balance runtime pm + use pm_runtime_resume_and_get() 2021-06-16 14:53:13 +01:00
inv_mpu_i2c.c iio: imu: inv_mpu6050: Add support for MPU-6880 2021-01-09 14:25:30 +00:00
inv_mpu_iio.h iio: imu: inv_mpu6050: Add support for MPU-6880 2021-01-09 14:25:30 +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: Use regmap_noinc_read for fifo reads. 2020-09-21 20:01:51 +01:00
inv_mpu_spi.c iio: imu: inv_mpu6050: Add support for MPU-6880 2021-01-09 14:25:30 +00:00
inv_mpu_trigger.c iio: imu: mpu6050: Balance runtime pm + use pm_runtime_resume_and_get() 2021-06-16 14:53:13 +01:00
Kconfig iio: imu: inv_mpu6050: Add support for MPU-6880 2021-01-09 14:25:30 +00:00
Makefile iio: imu: inv_mpu6050: add MPU925x magnetometer support 2019-10-05 12:14:20 +01:00