From: Thorsten Leemhuis <regressions@leemhuis.info>
To: James Clark <jjc@jclark.com>, Alan Stern <stern@rowland.harvard.edu>
Cc: Johan Hovold <johan@kernel.org>,
Bastien Nocera <hadess@hadess.net>,
Matthias Kaehlcke <mka@chromium.org>,
Arnd Bergmann <arnd@arndb.de>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>,
Douglas Anderson <dianders@chromium.org>,
Robert Nelson <robertcnelson@gmail.com>,
linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-gpio@vger.kernel.org, regressions@lists.linux.dev
Subject: Re: [PATCH v3 0/2] usb: core: fix failed device driver probes, add pre_probe
Date: Mon, 23 Nov 2026 12:37:43 +0100 [thread overview]
Message-ID: <329cd215-d824-44be-a1dd-3ebbf5c0803a@leemhuis.info> (raw)
In-Reply-To: <cover.1793669297.git.jjc@jclark.com>
On 11/3/26 04:34, James Clark wrote:
> On a BeagleY-AI with BeagleBoard's device tree, kernels since commit
> f918e3804498 ("arm64: enable HAVE_SHARED_GPIOS for all ARM64 platforms")
> no longer boot to a usable system: the on-board USB hub is re-probed in
> a loop. Patch 2 fixes this as Johan Hovold suggested, with a pre_probe
> callback that lets onboard_usb_dev defer before the hub is configured.
James, Alan, what happened to this? Looks like it feel through the
cracks after Alan's "This is all starting to sound very complicated and
fragile. Isn't there any way to simplify it?" later in the thread,
which was more than two weeks ago. Or was this regression fixed and I
just missed it?
Side note: another regression bisected to the above mentioned culprit
was reported recently:
gpio: shared-proxy: open-drain regulators on ODROID-HC4 fail with -EPERM
https://lore.kernel.org/all/20261115-hc4-gpio-shared-od-1@iav.lv/
Doesn't look related from a quick look, but well, at the same time I
wonder if there is some subtle connection.
Ciao, Thorsten
> Patch 1 fixes two pre-existing bugs found by a Sashiko review of v2.
>
> Tested on the BeagleY-AI on top of v7.4-rc1: the board boots normally.
> The -ENODEV fallback that patch 1 changes is not reached on this board.
>
> I found this by booting commit 85b4bc79dde7 (net/main during the 7.4
> merge window) on a BeagleY-AI with BeagleBoard's device tree. A coding
> agent identified the problem, explained it to me and proposed an initial
> fix, which was revised numerous times on the basis of comments on v1 and
> v2, my feedback and local Sashiko reviews. I verified that the series
> fixes the problem on top of v7.4-rc1.
>
> v3:
> - Add a patch to fix existing problems, as requested by Alan Stern.
> - Patch 2: rebased on it, no other change.
> v2: https://lore.kernel.org/all/20261030151919.3511106-1-jjc@jclark.com/
> v1: https://lore.kernel.org/all/20261030114705.3159093-1-jjc@jclark.com/
>
> #regzbot introduced: f918e3804498
>
> James Clark (2):
> usb: core: clean up before handing a device to the generic driver
> usb: core: add a pre_probe callback for device drivers that may defer
>
> drivers/usb/core/driver.c | 42 ++++++++++++++++++++++++++----
> drivers/usb/misc/onboard_usb_dev.c | 15 ++++++-----
> include/linux/usb.h | 14 ++++++++++
> 3 files changed, 59 insertions(+), 12 deletions(-)
>
>
> base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
next prev parent reply other threads:[~2026-11-23 11:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-03 3:34 James Clark
2026-11-03 3:34 ` [PATCH v3 1/2] usb: core: clean up before handing a device to the generic driver James Clark
2026-11-05 20:30 ` Alan Stern
2026-11-03 3:34 ` [PATCH v3 2/2] usb: core: add a pre_probe callback for device drivers that may defer James Clark
[not found] ` <sashiko-outbox-194542@kernel.org>
2026-11-03 5:39 ` James Clark
2026-11-05 20:31 ` Alan Stern
2026-11-23 11:37 ` Thorsten Leemhuis [this message]
2026-11-23 12:12 ` [PATCH v3 0/2] usb: core: fix failed device driver probes, add pre_probe James Clark
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=329cd215-d824-44be-a1dd-3ebbf5c0803a@leemhuis.info \
--to=regressions@leemhuis.info \
--cc=arnd@arndb.de \
--cc=bartosz.golaszewski@oss.qualcomm.com \
--cc=dianders@chromium.org \
--cc=gregkh@linuxfoundation.org \
--cc=hadess@hadess.net \
--cc=jjc@jclark.com \
--cc=johan@kernel.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=mka@chromium.org \
--cc=regressions@lists.linux.dev \
--cc=robertcnelson@gmail.com \
--cc=stern@rowland.harvard.edu \
/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®