[PATCH RFC 0/9] gpio: improve support for shared GPIOs

Bartosz Golaszewski brgl at bgdev.pl
Mon Oct 20 02:41:52 PDT 2025


On Fri, Oct 17, 2025 at 7:32 PM Mark Brown <broonie at kernel.org> wrote:
>
> On Fri, Oct 17, 2025 at 07:26:51PM +0200, Bartosz Golaszewski wrote:
>
> > Upon a closer inspection it turns out that this is not the case - the
> > ENABLE/DISABLE events are emitted when the *logical* regulator is
> > enabled/disabled even if this does not involve a change in the state
> > of the shared pin.
>
> It really should be the actual physical state change that triggers the
> event.

I guess so, but this would require some non-trivial rework of the
regulator core. We'd need some list of deferred notifications stored
in memory for when the physical state actually changes.

Bartosz



More information about the linux-arm-kernel mailing list