mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Revert "arm64: enable HAVE_SHARED_GPIOS for all ARM64 platforms"
@ 2026-12-02 10:38 James Clark
  2026-12-02 13:59 ` Bartosz Golaszewski
  0 siblings, 1 reply; 2+ messages in thread
From: James Clark @ 2026-12-02 10:38 UTC (permalink / raw)
  To: Arnd Bergmann, Bartosz Golaszewski, Catalin Marinas, Will Deacon
  Cc: Thorsten Leemhuis, Greg Kroah-Hartman, Linus Walleij, Frank Li,
	Mark Rutland, Matthias Kaehlcke, Robert Nelson, soc,
	linux-arm-kernel, linux-gpio, linux-kernel, regressions

This reverts commit f918e380449880824c415a39214b553aa7f64d5d.

Since that commit, the BeagleY-AI no longer boots. The reset GPIO of its
on-board USB hub is shared, so it is now handled by gpio-shared-proxy.
This exposes a bug in onboard_usb_dev, which loops in deferred probing
for about 90 seconds during boot, and systemd goes into emergency mode.

A fix for onboard_usb_dev has been posted [1] but has not yet been
reviewed. Revert this commit until the bug is fixed.

Closes: https://lore.kernel.org/all/20261030114705.3159093-1-jjc@jclark.com/
Link: https://lore.kernel.org/all/cover.1794018128.git.jjc@jclark.com/ [1]
Link: https://lore.kernel.org/all/1f23ba10-a4d1-4d59-b869-1d29975cb852@leemhuis.info/
Signed-off-by: James Clark <jjc@jclark.com>
---
I am sending this revert at the request of Thorsten Leemhuis, the Linux
kernel regression tracker (see the last Link: above).

Tested on a BeagleY-AI: with this revert on top of
v7.4-rc5-48-g693c2e04e3f1, it boots normally.

 arch/arm64/Kconfig           | 1 -
 arch/arm64/Kconfig.platforms | 2 ++
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index 9b08b2457a55..dc4292f29a7f 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -196,7 +196,6 @@ config ARM64
 		if DYNAMIC_FTRACE_WITH_ARGS
 	select HAVE_SAMPLE_FTRACE_DIRECT
 	select HAVE_SAMPLE_FTRACE_DIRECT_MULTI
-	select HAVE_SHARED_GPIOS
 	select HAVE_BUILDTIME_MCOUNT_SORT
 	select HAVE_EFFICIENT_UNALIGNED_ACCESS
 	select HAVE_EXIT_THREAD
diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
index 49dcd7be82ce..c52dc955df5f 100644
--- a/arch/arm64/Kconfig.platforms
+++ b/arch/arm64/Kconfig.platforms
@@ -37,6 +37,7 @@ config ARCH_APPLE
 	bool "Apple Silicon SoC family"
 	select APPLE_AIC
 	select APPLE_PMGR_PWRSTATE if PM
+	select HAVE_SHARED_GPIOS
 	help
 	  This enables support for Apple's in-house ARM SoC family, such
 	  as the Apple M1.
@@ -336,6 +337,7 @@ config ARCH_QCOM
 	select GPIOLIB
 	select PINCTRL
 	select HAVE_PWRCTRL if PCI
+	select HAVE_SHARED_GPIOS
 	help
 	  This enables support for the ARMv8 based Qualcomm chipsets.
 

base-commit: 693c2e04e3f1d4c59af236e1211b7b8cb165a790
-- 
2.56.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Revert "arm64: enable HAVE_SHARED_GPIOS for all ARM64 platforms"
  2026-12-02 10:38 [PATCH] Revert "arm64: enable HAVE_SHARED_GPIOS for all ARM64 platforms" James Clark
@ 2026-12-02 13:59 ` Bartosz Golaszewski
  0 siblings, 0 replies; 2+ messages in thread
From: Bartosz Golaszewski @ 2026-12-02 13:59 UTC (permalink / raw)
  To: James Clark
  Cc: Arnd Bergmann, Bartosz Golaszewski, Catalin Marinas, Will Deacon,
	Thorsten Leemhuis, Greg Kroah-Hartman, Linus Walleij, Frank Li,
	Mark Rutland, Matthias Kaehlcke, Robert Nelson, soc,
	linux-arm-kernel, linux-gpio, linux-kernel, regressions

On Wed, Dec 02, 2026 at 05:38:53PM +0700, James Clark wrote:
> This reverts commit f918e380449880824c415a39214b553aa7f64d5d.
> 
> Since that commit, the BeagleY-AI no longer boots. The reset GPIO of its
> on-board USB hub is shared, so it is now handled by gpio-shared-proxy.
> This exposes a bug in onboard_usb_dev, which loops in deferred probing
> for about 90 seconds during boot, and systemd goes into emergency mode.
> 
> A fix for onboard_usb_dev has been posted [1] but has not yet been
> reviewed. Revert this commit until the bug is fixed.
> 
> Closes: https://lore.kernel.org/all/20261030114705.3159093-1-jjc@jclark.com/
> Link: https://lore.kernel.org/all/cover.1794018128.git.jjc@jclark.com/ [1]
> Link: https://lore.kernel.org/all/1f23ba10-a4d1-4d59-b869-1d29975cb852@leemhuis.info/
> Signed-off-by: James Clark <jjc@jclark.com>
> ---
> I am sending this revert at the request of Thorsten Leemhuis, the Linux
> kernel regression tracker (see the last Link: above).
> 

Honestly, I don't see a good reason to revert it. The commit uncovered an
existing bug (didn't cause a regression due to its own bad logic) and this bug
has a pending fix on the list (how far are we from getting it upstream
anyway?).

We don't typically do this kind of revert-fix-bug-re-apply back and
forth with new functionalities.

Unless there's a good reason to not queue the fix right now, I'd prefer
to wait until it's in the tree.

Of course it's not my decision to make so treat it as my 2 cents.

Bartosz

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-12-02 13:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-02 10:38 [PATCH] Revert "arm64: enable HAVE_SHARED_GPIOS for all ARM64 platforms" James Clark
2026-12-02 13:59 ` Bartosz Golaszewski

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®