diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2022-05-12 01:04:46 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-05-12 19:32:25 +0300 |
commit | 4736ebd7fcaff1eb8481c140ba494962847d6e0a (patch) | |
tree | 2ae8ac3d95de85e5a9260b6ed838283c492cfdab /drivers/usb/host | |
parent | e0fe986972f5b6b12086c73569206dd29c520be9 (diff) | |
download | linux-4736ebd7fcaff1eb8481c140ba494962847d6e0a.tar.xz |
usb: host: xhci-plat: omit shared hcd if either root hub has no ports
Activate the just added extension for xhci-plat and omit the shared
hcd if either of the root hubs has no ports.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20220511220450.85367-6-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r-- | drivers/usb/host/xhci-plat.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c index c512ec2148ae..044855818cb1 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -245,6 +245,8 @@ static int xhci_plat_probe(struct platform_device *pdev) xhci = hcd_to_xhci(hcd); + xhci->allow_single_roothub = 1; + /* * Not all platforms have clks so it is not an error if the * clock do not exist. |