Re: [PATCH v3 12/14] gpio: regmap: Add optional runtime PM support

From: Linus Walleij

Date: Fri Aug 14 2026 - 03:08:01 EST


On Thu, Aug 13, 2026 at 3:58 PM Janani Sunil <janani.sunil@xxxxxxxxxx> wrote:

> Some gpio-regmap consumers share their regmap with a parent device that
> may be runtime suspended. GPIO register accesses must resume that device
> first.
>
> Add an optional pm_dev field and acquire it before register translation
> or access. Release it using runtime autosuspend after each operation.
> Keep the device active across the complete direction-output sequence and
> propagate failure when setting the initial output value.
>
> Signed-off-by: Janani Sunil <janani.sunil@xxxxxxxxxx>

I like it.
Reviewed-by: Linus Walleij <linusw@xxxxxxxxxx>

This also looks like it could be merged orthogonally to the GPIO
tree though I see there are runtime dependencies. What about
Bartosz queue the two GPIO patches on an immutable branch
for Jonathan to pick?

Yours,
Linus Walleij