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