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

From: Jonathan Cameron

Date: Sun Jun 14 2026 - 09:31:34 EST


On Sun, 14 Jun 2026 12:45:45 +0530
Biren Pandya <birenpandya@xxxxxxxxx> wrote:

> 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.

Oops. Too me until just after I'd replied to patch 4 to notice
that these don't have the necessary Fixes tags.

I've added them, but keep that in mind for next time you send a fix.

Thanks,

Jonathan



>
> 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(-)
>