summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/xhci-hub.c
diff options
context:
space:
mode:
authorMathias Nyman <mathias.nyman@linux.intel.com>2017-12-08 17:59:15 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-12-08 17:43:53 +0100
commit3f8499ac7cd838199eacd9d9a002e37227f1f2c7 (patch)
treec1d3080968aa06a65011f4d0d4e37bfd2600804c /drivers/usb/host/xhci-hub.c
parent28c06e58602fe48eb03ec8d4bdd005094fb6a31f (diff)
downloadlinux-3f8499ac7cd838199eacd9d9a002e37227f1f2c7.tar.gz
linux-3f8499ac7cd838199eacd9d9a002e37227f1f2c7.tar.bz2
linux-3f8499ac7cd838199eacd9d9a002e37227f1f2c7.zip
xhci: add port status tracing for Get Hub Status requests
Trace the port status of each port of a roothub when the xhci roothub receives a Get Hub Status request. 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-hub.c')
-rw-r--r--drivers/usb/host/xhci-hub.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-hub.c b/drivers/usb/host/xhci-hub.c
index 1a1856bb67a2..46d5e08f05f1 100644
--- a/drivers/usb/host/xhci-hub.c
+++ b/drivers/usb/host/xhci-hub.c
@@ -1443,6 +1443,8 @@ int xhci_hub_status_data(struct usb_hcd *hcd, char *buf)
retval = -ENODEV;
break;
}
+ trace_xhci_hub_status_data(i, temp);
+
if ((temp & mask) != 0 ||
(bus_state->port_c_suspend & 1 << i) ||
(bus_state->resume_done[i] && time_after_eq(