Skip to content

iio: Fix runtime PM leaks across multiple drivers

Biren Pandya linux-iio lkml 1 version Applied

Status from this message: Applied to the fixes-togreg branch of iio.git and marked for stable.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 5 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4iio: accel: kxsd9: fix runtime PM imbalance on write_raw() errordrivers/iio/accel/kxsd9.c+3 -21 reply
2/4iio: gyro: mpu3050: fix runtime PM leak when enabling trigger failsdrivers/iio/gyro/mpu3050-core.c+11 -55 replies
3/4iio: pressure: mpl115: fix runtime PM leak on read errordrivers/iio/pressure/mpl115.c+2 -21 reply
4/4iio: light: gp2ap002: fix runtime PM leak on read errordrivers/iio/light/gp2ap002.c+1 -11 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH v1 0/4] iio: Fix runtime PM leaks across multiple drivers

Hi Jonathan,

While auditing the IIO subsystem, I noticed a recurring pattern in several drivers where early returns or error paths fail to drop their pm_runtime_get_sync() references. This permanently leaves the device active and prevents autosuspension.

This series provides four independent fixes for these imbalances across the kxsd9, mpu3050, mpl115, and gp2ap002 drivers.

Because these drivers are independent, these patches do not depend on each other and can be merged individually.

Best regards,
Biren Pandya

 drivers/iio/accel/kxsd9.c       |  5 +++--
 drivers/iio/gyro/mpu3050-core.c | 16 +++++++++++-----
 drivers/iio/light/gp2ap002.c    |  2 +-
 drivers/iio/pressure/mpl115.c   |  4 ++--
 4 files changed, 17 insertions(+), 10 deletions(-)
Signature · 1 line
2.50.1 (Apple Git-155)