linux: Skip EHCI companion handoff when no companion exists
When companion OHCI and UHCI controllers are absent in HCSPARAMS,
disabled in Kconfig, or linked via a Device Tree companion phandle to a
disabled node, setting PORT_OWNER in PORTSC hands root ports over to an
unbound controller and strands High-Speed USB 2.0 hubs until EHCI is
rebound.
Apply the upstream patch to the kernels built from upstream trees:
linux-gbmc stable, lts, and mainline, plus linux-aspeed and
linux-nuvoton. The gbmc/linux branches (gbmc-5.15, gbmc-6.12-*, and
gbmc-6.18-*) carry the commit directly and pick it up through SRCREV
bumps, so linux-gbmc.inc no longer applies it. The upstream patch has
Alan Stern's Reviewed-by.
Tested:
- scripts/checkpatch.pl --strict passed with 0 warnings/errors.
- Verified zero-fuzz patch application across all pinned gBMC kernel
revisions (5.1 through 6.18) and W=1 compilation with CONFIG_OF and
CONFIG_USB_EHCI_ROOT_HUB_TT on and off.
- Built and verified on AST2600 (ehci-platform) and NPCM (npcm7xx-ehci)
BMCs that the companion sysfs file is omitted and PORTSC stays
0x00001005 across root-port resets, AC powercycles, and warm reboots.
Link: https://lore.kernel.org/linux-usb/20261116063104.1018358-1-william@wkennington.com/
Fusion-Link: fusion2 N/A
Google-Bug-Id: 574912243
Change-Id: I9e112fe307dd725c5c802ab42210d2c432a7da49
Signed-off-by: William A. Kennington III <wak@google.com>
1 file changed