[PATCH] USB: OHCI/UHCI: Add soft dependencies on ehci_hcd

Alan Stern stern at rowland.harvard.edu
Fri Jan 2 19:33:46 PST 2026


On Sat, Jan 03, 2026 at 11:16:59AM +0800, Huacai Chen wrote:
> Thank you for your explanation, so it means there are two methods: The
> old one is EHCI with a companion OHCI; the new one is EHCI with a
> USB-2.0 hub. Right?

Right.

> > > So I guess OHCI/UHCI have an EHCI dependency in order to avoid "new
> > > connection", not only in the PCI case.
> >
> > Do you know of any non-PCI systems that do this?
> Unfortunately, in 2026 there are really "EHCI with a companion OHCI"
> for non-PCI systems, please see
> arch/loongarch/boot/dts/loongson-2k0500.dtsi.

Since these systems don't use PCI, the question I raised earlier still 
needs to be answered: How do they route connections between the ports 
and the two controllers?

There may be some exceptions, but for the most part, the code in 
ehci-hcd was written assuming that only PCI-based controllers will have 
companions.  If you want to make an exception for loongson-2k0500, you 
will need to figure out how to get it to work.

Have you tested any of those systems to see how they behave if a USB-1 
device is already plugged in and running when the ehci-hcd driver gets 
loaded?

Alan Stern



More information about the Linux-rockchip mailing list