Re: [PATCH v8 2/3] gpio: regmap: Add optional runtime PM support
From: Linus Walleij
Date: Thu Sep 10 2026 - 14:16:34 EST
On Thu, Sep 10, 2026 at 7:29 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.
>
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>
> Reviewed-by: Michael Walle <mwalle@xxxxxxxxxx>
> Signed-off-by: Janani Sunil <janani.sunil@xxxxxxxxxx>
This is some nice stuff.
Reviewed-by: Linus Walleij <linusw@xxxxxxxxxx>
Yours,
Linus Walleij