usb: host: xhci-plat: prepare operation w/o shared hcd
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 11 May 2022 22:04:45 +0000 (01:04 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 May 2022 16:32:25 +0000 (18:32 +0200)
commite0fe986972f5b6b12086c73569206dd29c520be9
treefdd5cfcf5c886882426178f994253b6abae1177f
parent0cf1ea040a7e2cae4776216d16d33d3898ea58de
usb: host: xhci-plat: prepare operation w/o shared hcd

This patch prepares xhci-plat 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-5-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-plat.c