Thread (37 messages) flat view 37 messages, 7 authors, 20d ago

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

From: Linus Walleij <linusw@kernel.org>
Date: 2026-08-14 07:07:52
Also in: linux-doc, linux-gpio, linux-iio, lkml

On Thu, Aug 13, 2026 at 3:58 PM Janani Sunil [off-list ref] 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@analog.com>
I like it.
Reviewed-by: Linus Walleij <linusw@kernel.org>

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help