Re: [PATCH] iio: gyro: mpu3050-core: use pm_runtime_resume_and_get()
From: Linus Walleij
Date: Mon Feb 02 2026 - 19:21:30 EST
On Fri, Jan 30, 2026 at 4:34 PM Antoniu Miclaus
<antoniu.miclaus@xxxxxxxxxx> wrote:
> Use pm_runtime_resume_and_get() in mpu3050_read_raw() and
> mpu3050_buffer_preenable(), adding proper error handling. In
> preenable, call pm_runtime_put_autosuspend() if set_8khz_samplerate()
> fails since postdisable won't be called on preenable failure.
>
> Signed-off-by: Antoniu Miclaus <antoniu.miclaus@xxxxxxxxxx>
Reviewed-by: Linus Walleij <linusw@xxxxxxxxxx>
Yours,
Linus Walleij