diff options
author | Mathias Nyman <mathias.nyman@linux.intel.com> | 2017-08-16 14:23:24 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-17 01:26:26 +0300 |
commit | 8ca1358bd9b1c7a98c8f3210c1aaa2577975a389 (patch) | |
tree | 1804f3a6ed0176bf76b1bd11a822e84f88b53ea0 /drivers/usb/host/xhci-ring.c | |
parent | 76a0f32b28d4e2485a37ddce8d045d8819c6cfbf (diff) | |
download | linux-8ca1358bd9b1c7a98c8f3210c1aaa2577975a389.tar.xz |
xhci: add port status tracing
Track the port status in a human readble way each time we get a
port status change event
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-ring.c')
-rw-r--r-- | drivers/usb/host/xhci-ring.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c index 52a66506b905..a9443651ce0f 100644 --- a/drivers/usb/host/xhci-ring.c +++ b/drivers/usb/host/xhci-ring.c @@ -1638,6 +1638,8 @@ static void handle_port_status(struct xhci_hcd *xhci, port_id); portsc = readl(port_array[faked_port_index]); + trace_xhci_handle_port_status(faked_port_index, portsc); + if (hcd->state == HC_STATE_SUSPENDED) { xhci_dbg(xhci, "resume root hub\n"); usb_hcd_resume_root_hub(hcd); |