diff options
Diffstat (limited to 'drivers/usb/host/xhci.c')
-rw-r--r-- | drivers/usb/host/xhci.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index 9f4f73bfd01b..4adf5e19918a 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c | |||
@@ -1434,7 +1434,8 @@ int xhci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) | |||
1434 | goto done; | 1434 | goto done; |
1435 | temp = xhci_readl(xhci, &xhci->op_regs->status); | 1435 | temp = xhci_readl(xhci, &xhci->op_regs->status); |
1436 | if (temp == 0xffffffff || (xhci->xhc_state & XHCI_STATE_HALTED)) { | 1436 | if (temp == 0xffffffff || (xhci->xhc_state & XHCI_STATE_HALTED)) { |
1437 | xhci_dbg(xhci, "HW died, freeing TD.\n"); | 1437 | xhci_dbg_trace(xhci, trace_xhci_dbg_cancel_urb, |
1438 | "HW died, freeing TD."); | ||
1438 | urb_priv = urb->hcpriv; | 1439 | urb_priv = urb->hcpriv; |
1439 | for (i = urb_priv->td_cnt; i < urb_priv->length; i++) { | 1440 | for (i = urb_priv->td_cnt; i < urb_priv->length; i++) { |
1440 | td = urb_priv->td[i]; | 1441 | td = urb_priv->td[i]; |
@@ -1452,8 +1453,9 @@ int xhci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) | |||
1452 | } | 1453 | } |
1453 | if ((xhci->xhc_state & XHCI_STATE_DYING) || | 1454 | if ((xhci->xhc_state & XHCI_STATE_DYING) || |
1454 | (xhci->xhc_state & XHCI_STATE_HALTED)) { | 1455 | (xhci->xhc_state & XHCI_STATE_HALTED)) { |
1455 | xhci_dbg(xhci, "Ep 0x%x: URB %p to be canceled on " | 1456 | xhci_dbg_trace(xhci, trace_xhci_dbg_cancel_urb, |
1456 | "non-responsive xHCI host.\n", | 1457 | "Ep 0x%x: URB %p to be canceled on " |
1458 | "non-responsive xHCI host.", | ||
1457 | urb->ep->desc.bEndpointAddress, urb); | 1459 | urb->ep->desc.bEndpointAddress, urb); |
1458 | /* Let the stop endpoint command watchdog timer (which set this | 1460 | /* Let the stop endpoint command watchdog timer (which set this |
1459 | * state) finish cleaning up the endpoint TD lists. We must | 1461 | * state) finish cleaning up the endpoint TD lists. We must |
@@ -1474,8 +1476,9 @@ int xhci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) | |||
1474 | urb_priv = urb->hcpriv; | 1476 | urb_priv = urb->hcpriv; |
1475 | i = urb_priv->td_cnt; | 1477 | i = urb_priv->td_cnt; |
1476 | if (i < urb_priv->length) | 1478 | if (i < urb_priv->length) |
1477 | xhci_dbg(xhci, "Cancel URB %p, dev %s, ep 0x%x, " | 1479 | xhci_dbg_trace(xhci, trace_xhci_dbg_cancel_urb, |
1478 | "starting at offset 0x%llx\n", | 1480 | "Cancel URB %p, dev %s, ep 0x%x, " |
1481 | "starting at offset 0x%llx", | ||
1479 | urb, urb->dev->devpath, | 1482 | urb, urb->dev->devpath, |
1480 | urb->ep->desc.bEndpointAddress, | 1483 | urb->ep->desc.bEndpointAddress, |
1481 | (unsigned long long) xhci_trb_virt_to_dma( | 1484 | (unsigned long long) xhci_trb_virt_to_dma( |