From: Philipp Zabel <p.zabel@pengutronix.de>
To: Bartosz Golaszewski <brgl@kernel.org>,
Abel Vesa <abel.vesa@oss.qualcomm.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] reset: gpio: Parent the reset-gpio device to the GPIO controller
Date: Tue, 01 Dec 2026 18:00:20 +0100 [thread overview]
Message-ID: <38c0035e32bc6bccf5e04b929a7873270e30d969.camel@pengutronix.de> (raw)
In-Reply-To: <sb5jpqtpvrtghyo5ainfsr6flrcooaavg4whvp6qog2baovu3p@efgy6u57tcbw>
On Fr, 2026-11-06 at 11:02 +0100, Bartosz Golaszewski wrote:
> On Mon, Oct 26, 2026 at 02:21:55PM +0200, Abel Vesa wrote:
> > The reset-gpio auxiliary device is a child of the GPIO device providing
> > the reset line. That GPIO device is unregistered when its controller is
> > unbound, which removes the sysfs directory of the reset-gpio device with
> > it, while the reset-gpio device itself stays registered. When the
> > controller is bound again, probing the reset-gpio device fails:
> >
> > reset_gpio reset.gpio.0: really_probe: driver_sysfs_add failed
> >
> > and so do the consumers of its reset line. This happens for example with
> > the LPASS LPI pin controller, which goes away together with the ADSP.
> >
> > Make the controller the parent instead, which stays registered while it
> > is unbound and gets a new GPIO device when it is bound again. Keep using
> > the GPIO device if it has no parent.
> >
>
> I believe the commit message is a bit imprecise and mixes up the naming
> of actors.
>
> We have the "GPIO parent" - the optional[1] device that's bound to a driver
> and calls gpiochip_add_data() - and the "GPIO controller" device which is the
> device we register (and optionally bind to the GPIO stub driver) which is the
> one exposing the lines.
>
> I'd reword it to:
>
> "The reset-gpio auxiliary device is the child of the GPIO controller device
> providing the reset line. That device is unregistered when its parent if
> unbound, which removes (...). When the parent is bound again, probing
> reset-gpio device fails: (...).
>
> (...)
>
> Make the parent of the GPIO controller, the parent of the reset-gpio
> auxiliary device too (...)."
>
> I still need to test it and Tyler's fix with my reset-gpio +
> gpio-shared-proxy setup.
Acked-by: Philipp Zabel <p.zabel@pengutronix.de>
for this to go in via the GPIO tree. I'm also fine with the rewording.
regards
Philipp
prev parent reply other threads:[~2026-12-01 17:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-26 12:21 Abel Vesa
2026-11-06 5:21 ` Tyler Baker
2026-11-06 10:02 ` Bartosz Golaszewski
2026-12-01 17:00 ` Philipp Zabel [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=38c0035e32bc6bccf5e04b929a7873270e30d969.camel@pengutronix.de \
--to=p.zabel@pengutronix.de \
--cc=abel.vesa@oss.qualcomm.com \
--cc=brgl@kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®