Re: [PATCH] gpio: shared: handle the reset-gpios corner case

From: Bartosz Golaszewski
Date: Mon Nov 24 2025 - 10:36:46 EST


On Mon, Nov 24, 2025 at 9:38 AM Bartosz Golaszewski <brgl@xxxxxxxx> wrote:
>
> On Sun, Nov 23, 2025 at 2:03 AM Val Packett <val@xxxxxxxxxxxx> wrote:
> >
> > > ---
> > > This is targetting linux-next where the reset-gpio driver is now using
> > > the auxiliary bus and software nodes rather than the platform bus and
> > > GPIO machine lookup. The bug is the same in both cases but the fix would
> > > be completely different.
> > > ---
> > > [..]
> >
> > Tried applying only this, as well as this +
> > https://lore.kernel.org/all/20251120-reset-gpios-swnodes-v7-0-a100493a0f4b@xxxxxxxxxx/
> > + https://lore.kernel.org/all/20251121135739.66528-1-brgl@xxxxxxxx/ (on
> > top of next-20251120) and the issue is still present.. am I missing
> > something?
> >
>
> Can you try this branch?
>
> https://github.com/brgl/linux test/gpiolib-shared-reset-gpio-fix
>
> I confirmed it works on my setup and fixes the problem with multiple
> users of reset-gpio AND shared GPIOs enabled.
>

Actually linux-next got updated with all the prerequisites so you can
try this patch on top of next-20251124. I tested it and it works for
me. If it still doesn't for you, can you enable GPIO debug messages
and send me the entire kernel log?

Bartosz