Re: [PATCH v3 12/14] gpio: regmap: Add optional runtime PM support
Linus Walleij <[email protected]>
| Newsgroups | org.kernel.vger.linux-gpio,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-doc,org.kernel.vger.linux-iio,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <CAD++jLnz8vcK06AfvbipscDDBvbUPA+bcXc+kDE1ZV7eozDviw@mail.gmail.com> |
On Thu, Aug 13, 2026 at 3:58 PM Janani Sunil <[email protected]> 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 <[email protected]> I like it. Reviewed-by: Linus Walleij <[email protected]> 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