diff options
author | Mathias Nyman <mathias.nyman@linux.intel.com> | 2018-05-21 15:39:54 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-24 18:03:08 +0200 |
commit | ffd4b4fc0b9a1526b64240676d309506b2d5eceb (patch) | |
tree | 37284cf5942cdcd852116aaef3d6da97bad299d4 /drivers/usb/host/xhci.h | |
parent | xhci: set hcd pointers for xhci usb2 and usb3 roothub structures (diff) | |
download | linux-ffd4b4fc0b9a1526b64240676d309506b2d5eceb.tar.xz linux-ffd4b4fc0b9a1526b64240676d309506b2d5eceb.zip |
xhci: Add helper to get xhci roothub from hcd
quick way to get the xhci roothub and thus all the ports
belonging to a certain hcd
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.h')
-rw-r--r-- | drivers/usb/host/xhci.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h index 38aa8a6777a8..cdf8e1adc06f 100644 --- a/drivers/usb/host/xhci.h +++ b/drivers/usb/host/xhci.h @@ -2110,6 +2110,8 @@ int xhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, u16 wIndex, char *buf, u16 wLength); int xhci_hub_status_data(struct usb_hcd *hcd, char *buf); int xhci_find_raw_port_number(struct usb_hcd *hcd, int port1); +struct xhci_hub *xhci_get_rhub(struct usb_hcd *hcd); + void xhci_hc_died(struct xhci_hcd *xhci); #ifdef CONFIG_PM |