usb: host: xhci-plat: create shared hcd after having added main hcd
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 11 May 2022 22:04:44 +0000 (01:04 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 May 2022 16:32:24 +0000 (18:32 +0200)
commit0cf1ea040a7e2cae4776216d16d33d3898ea58de
tree92b54c9d284e28f65d52d64c12b486c8a2156614
parent873f323618c202cd0675324a1027dcecc7745d0b
usb: host: xhci-plat: create shared hcd after having added main hcd

This patch is in preparation of an extension where in case of a
root hub with no ports no shared hcd will be created.
Whether one of the root hubs has no ports we figure our in
usb_add_hcd() for the primary hcd. Therefore create the shared hcd
only after this call.

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