Re: [PATCH] gpio: shared: make the voting mechanism adaptable
From: Linus Walleij
Date: Mon May 25 2026 - 04:42:47 EST
On Tue, May 19, 2026 at 10:56 AM Bartosz Golaszewski <brgl@xxxxxxxxxx> wrote:
> On Tue, May 19, 2026 at 10:34 AM Linus Walleij <linusw@xxxxxxxxxx> wrote:
> > BTW was this "voting" system inspired by the hardware "vote" thing
> > that Qualcomm is using for power management? That's the only place
> > I've seen it before.
>
> Really only the name, it's not much different from what we already
> have in clocks or regulators IMO.
My thinking is:
- refcount = any request enables, all consumers must disable before
resource goes offline
- vote = some kind of majority or first-come-first-served decision and
consumers could be denied the resource
If the semantics are the same I will be confused... this seems to
be a first-come-first-served scheme so I comprehend it.
Yours,
Linus Walleij