Skip to content

iio: imu: inv_mpu6050: runtime pm fixes

Andrey Skvortsov linux-iio lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 1 replyIn review
  2. v33 patches 6 repliesSuperseded
  3. v23 patches 7 repliesSuperseded

Changes in v4 from the cover letter

- update commit messages to address Andy's comment
about functions, callbacks and runtime PM names
- move pm_runtime_set_active just before vddio regulator is enabled as it was proposed previously in v2.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3iio: imu: inv_mpu6050: fix unbalanced regulator_disable() calls, when probe failsdrivers/iio/imu/inv_mpu6050/inv_mpu_core.c+8 -40 replies
2/3iio: imu: inv_mpu6050: use devres-enabled version of pm_runtime_enable()drivers/iio/imu/inv_mpu6050/inv_mpu_core.c+3 -110 replies
3/3iio: imu: inv_mpu6050: control vdd supply using devm-helpersdrivers/iio/imu/inv_mpu6050/inv_mpu_core.c drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h+4 -200 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/3] iio: imu: inv_mpu6050: runtime pm fixes

This patchset fixes problem with inv_mpu6050 driver,
when it fails after device is suspended by runtime pm during a probe. To simplify runtime pm handling in the driver more devm-helpers are used.

Andrey Skvortsov (3):
iio: imu: inv_mpu6050: fix unbalanced regulator_disable() calls, when
probe fails
iio: imu: inv_mpu6050: use devres-enabled version of
pm_runtime_enable()
iio: imu: inv_mpu6050: control vdd supply using devm-helpers

 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c | 49 +++++++---------------
 drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h  |  1 -
 2 files changed, 15 insertions(+), 35 deletions(-)

Changes in v4:
- update commit messages to address Andy's comment
about functions, callbacks and runtime PM names
- move pm_runtime_set_active just before vddio regulator is enabled as it was proposed previously in v2.

Changes in v3:
- make patch "fix unbalanced regulator_disable calls, when probe fails" with Fixes to be the first patch of the patchset for easier backporting
- don't move pm_runtime_set_active, move devm_add_action_or_reset for inv_mpu_core_disable_regulator_action instead
- update commit message in "fix unbalanced regulator_disable calls, when probe fails" to fix Andy's comment
- remove blank lines in "use devres-enabled version of pm_runtime_enable"
- no dead code in inv_mpu_core_disable_regulator_action anymore since st variable is used to get 'struct device' now

Changes in v2:
- minimize call trace in commit message
- use runtime pm framework to track vddio regulator state
- include specific driver name in patch subject
- add more patches to use device managed functions

Signature · 1 line
2.53.0