Re: [PATCH] iio: gyro: mpu3050-i2c: use pm_runtime_resume_and_get()

From: Nuno Sá

Date: Tue Feb 03 2026 - 04:44:40 EST


On Sat, 2026-01-31 at 16:41 +0000, Jonathan Cameron wrote:
> On Fri, 30 Jan 2026 17:32:26 +0200
> Antoniu Miclaus <antoniu.miclaus@xxxxxxxxxx> wrote:
>
> > Use pm_runtime_resume_and_get() in bypass_select() and return its
> > result directly. Unlike pm_runtime_get_sync(), it doesn't increment
> > the refcount on failure.
> >
> > Signed-off-by: Antoniu Miclaus <antoniu.miclaus@xxxxxxxxxx>
>
> Please always put a cover letter on anything with more than one patch.
> Provides both a nice name for the series in patchwork etc and a
> single place to reply.
>
> Are these fixes?  What is side effect of the wrong ref count?

Yeps, at first glance I would count this as a fix...

- Nuno Sá
>