summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/xhci.c
diff options
context:
space:
mode:
authorMathias Nyman <mathias.nyman@linux.intel.com>2018-05-21 16:39:53 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-05-24 18:03:08 +0200
commit9ea95ecc7ffd338a62972ddd6b0ac46bdc5e7d49 (patch)
tree8a84e4306bf8b585f89df742adf8177ccf89a9e2 /drivers/usb/host/xhci.c
parentbcaa9d5c59005eceed5f2112c13240401f0fb93b (diff)
downloadtalos-op-linux-9ea95ecc7ffd338a62972ddd6b0ac46bdc5e7d49.tar.gz
talos-op-linux-9ea95ecc7ffd338a62972ddd6b0ac46bdc5e7d49.zip
xhci: set hcd pointers for xhci usb2 and usb3 roothub structures
Allows us to know the correct hcd a xhci roothub and its ports belong to. Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/xhci.c')
-rw-r--r--drivers/usb/host/xhci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c
index 711da3306b14..f614ba182d96 100644
--- a/drivers/usb/host/xhci.c
+++ b/drivers/usb/host/xhci.c
@@ -4858,6 +4858,7 @@ int xhci_gen_setup(struct usb_hcd *hcd, xhci_get_quirks_t get_quirks)
if (usb_hcd_is_primary_hcd(hcd)) {
xhci->main_hcd = hcd;
+ xhci->usb2_rhub.hcd = hcd;
/* Mark the first roothub as being USB 2.0.
* The xHCI driver will register the USB 3.0 roothub.
*/
@@ -4883,6 +4884,7 @@ int xhci_gen_setup(struct usb_hcd *hcd, xhci_get_quirks_t get_quirks)
minor_rev,
minor_rev ? "Enhanced" : "");
+ xhci->usb3_rhub.hcd = hcd;
/* xHCI private pointer was set in xhci_pci_probe for the second
* registered roothub.
*/
OpenPOWER on IntegriCloud