xhci: Add debugging for URB link failure.
Occasionally after a cold boot and an unload and reload of the xHCI
driver, when I plug in a UAS device and streams are allocated, I see
that the first URB it submits continually gets an error code from
usb_submit_urb(). I think I've tracked it down to
usb_hcd_link_urb_to_ep(), but I need to know *why* that's failing.
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c
index b8e1f1b..728761d 100644
--- a/drivers/usb/host/xhci-ring.c
+++ b/drivers/usb/host/xhci-ring.c
@@ -2557,8 +2557,11 @@
if (td_index == 0) {
ret = usb_hcd_link_urb_to_ep(bus_to_hcd(urb->dev->bus), urb);
- if (unlikely(ret))
+ if (unlikely(ret)) {
+ xhci_dbg(xhci, "usb_hcd_link_urb_to_ep failed %i\n",
+ ret);
return ret;
+ }
}
td->urb = urb;