[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAD++jLmokwGhd3m89uf7Xa3wVp-J0GcELRVWj2FR-x_wYEvdFw@mail.gmail.com>
Date: Sat, 7 Feb 2026 22:43:30 +0100
From: Linus Walleij <linusw@...nel.org>
To: Antoniu Miclaus <antoniu.miclaus@...log.com>
Cc: Linus Walleij <linus.walleij@...aro.org>, Jonathan Cameron <jic23@...nel.org>,
Lars-Peter Clausen <lars@...afoo.de>, linux-iio@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 2/2] iio: gyro: mpu3050-core: use pm_runtime_resume_and_get()
On Mon, Feb 2, 2026 at 3:57 PM Antoniu Miclaus
<antoniu.miclaus@...log.com> wrote:
> Replace pm_runtime_get_sync() with pm_runtime_resume_and_get() in
> mpu3050_read_raw() and mpu3050_buffer_preenable(). Unlike
> pm_runtime_get_sync(), the usage count is not incremented on error.
>
> 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@...log.com>
Reviewed-by: Linus Walleij <linusw@...nel.org>
Yours,
Linus Walleij
Powered by blists - more mailing lists