Re: [PATCH v1 1/1] iio: magnetometer: ak8975: Add missed pm_runtime_put_autosuspend() call
From: Maxwell Doose
Date: Wed May 06 2026 - 09:29:08 EST
On Wed, May 6, 2026 at 3:28 AM Andy Shevchenko
<andriy.shevchenko@xxxxxxxxxxxxxxx> wrote:
>
> On the failure in the ak8975_read_axis() the PM runtime gets unbalanced.
> Balance it by calling pm_runtime_put_autosuspend() on error path as well.
>
> Fixes: cde4cb5dd422 ("iio: magn: ak8975: deploy runtime and system PM")
> Reported-by: Sashiko <sashiko-bot@xxxxxxxxxx>
> Closes: https://sashiko.dev/#/patchset/20260505-magnetometer-fixes-v5-0-831b9b5550fc%40gmail.com
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
> ---
> drivers/iio/magnetometer/ak8975.c | 1 +
> 1 file changed, 1 insertion(+)
>
[snip]
>
Looks fine to me but I'm not in a position to give a formal rb, as I
can't compile-test it right now. If Jonathan gives it the green light
then if he wants he can add my tag but that's at his discretion and
not totally necessary since Joshua already gave his rb.
best regards,
max