Linux USB
 help / color / mirror / Atom feed
* [PATCH] USB: OHCI/UHCI: Add soft dependencies on ehci_hcd
@ 2025-12-30  8:00 Huacai Chen
  2025-12-30  8:15 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 20+ messages in thread
From: Huacai Chen @ 2025-12-30  8:00 UTC (permalink / raw)
  To: Huacai Chen, Greg Kroah-Hartman
  Cc: Alan Stern, linux-usb, linux-kernel, Huacai Chen, stable,
	Shengwen Xiao

Commit 9beeee6584b9aa4f ("USB: EHCI: log a warning if ehci-hcd is not
loaded first") said that ehci-hcd should be loaded before ohci-hcd and
uhci-hcd. However, commit 05c92da0c52494ca ("usb: ohci/uhci - add soft
dependencies on ehci_pci") only makes ohci-pci/uhci-pci depend on ehci-
pci, which is not enough and we may still see the warnings in boot log.
So fix it by also making ohci-hcd/uhci-hcd depend on ehci-hcd.

Cc: stable@vger.kernel.org
Reported-by: Shengwen Xiao <atzlinux@sina.com>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
---
 drivers/usb/host/ohci-hcd.c | 1 +
 drivers/usb/host/uhci-hcd.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c
index 9c7f3008646e..549c965b7fbe 100644
--- a/drivers/usb/host/ohci-hcd.c
+++ b/drivers/usb/host/ohci-hcd.c
@@ -1355,4 +1355,5 @@ static void __exit ohci_hcd_mod_exit(void)
 	clear_bit(USB_OHCI_LOADED, &usb_hcds_loaded);
 }
 module_exit(ohci_hcd_mod_exit);
+MODULE_SOFTDEP("pre: ehci_hcd");
 
diff --git a/drivers/usb/host/uhci-hcd.c b/drivers/usb/host/uhci-hcd.c
index 14e6dfef16c6..e1a27d01bdbc 100644
--- a/drivers/usb/host/uhci-hcd.c
+++ b/drivers/usb/host/uhci-hcd.c
@@ -939,3 +939,4 @@ module_exit(uhci_hcd_cleanup);
 MODULE_AUTHOR(DRIVER_AUTHOR);
 MODULE_DESCRIPTION(DRIVER_DESC);
 MODULE_LICENSE("GPL");
+MODULE_SOFTDEP("pre: ehci_hcd");
-- 
2.47.3


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

end of thread, other threads:[~2026-01-11  2:04 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-30  8:00 [PATCH] USB: OHCI/UHCI: Add soft dependencies on ehci_hcd Huacai Chen
2025-12-30  8:15 ` Greg Kroah-Hartman
2025-12-30  9:00   ` xiao sheng wen(肖盛文)
2025-12-30 14:40   ` Diederik de Haas
2025-12-30 16:42     ` Alan Stern
2025-12-31  9:38       ` Huacai Chen
2025-12-31 15:20         ` Alan Stern
2026-01-02  2:36           ` Huacai Chen
2026-01-02 15:13             ` Alan Stern
2026-01-03  3:16               ` Huacai Chen
2026-01-03  3:33                 ` Alan Stern
2026-01-03  3:57                   ` Huacai Chen
2026-01-03 16:41                     ` Alan Stern
2026-01-10  4:05                       ` Huacai Chen
2026-01-10 15:00                         ` Alan Stern
2026-01-11  1:54                           ` Huacai Chen
2026-01-11  2:04                             ` Alan Stern
2025-12-31 17:33       ` Diederik de Haas
2025-12-31 18:09         ` Alan Stern
2025-12-30 16:23   ` Alan Stern

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox