xhci: prepare for operation w/o shared hcd
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 11 May 2022 22:04:43 +0000 (01:04 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 May 2022 16:32:24 +0000 (18:32 +0200)
commit873f323618c202cd0675324a1027dcecc7745d0b
tree4a613b8ee5e47ef6d31f61c2d5744acac42f9c17
parent57f23cd0bf2f56d339f810a913a9c0c5abfcfc7e
xhci: prepare for operation w/o shared hcd

This patch prepares xhci for the following scenario:
- If either of the root hubs has no ports, then omit shared hcd
- Main hcd can be USB3 if there are no USB2 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-3-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-hub.c
drivers/usb/host/xhci-mem.c
drivers/usb/host/xhci.c
drivers/usb/host/xhci.h