Re: [PATCH v6 2/3] gpio: regmap: Add optional runtime PM support

From: Michael Walle

Date: Fri Sep 04 2026 - 02:50:26 EST


On Thu Sep 3, 2026 at 2:01 PM CEST, Janani Sunil 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>
> Signed-off-by: Janani Sunil <janani.sunil@xxxxxxxxxx>

Reviewed-by: Michael Walle <mwalle@xxxxxxxxxx>

Attachment: signature.asc
Description: PGP signature