xhci: Warn when hosts don't halt.
[pandora-kernel.git] / drivers / usb / host / xhci.c
index 09872ee..48b048f 100644 (file)
@@ -107,6 +107,9 @@ int xhci_halt(struct xhci_hcd *xhci)
                        STS_HALT, STS_HALT, XHCI_MAX_HALT_USEC);
        if (!ret)
                xhci->xhc_state |= XHCI_STATE_HALTED;
+       else
+               xhci_warn(xhci, "Host not halted after %u microseconds.\n",
+                               XHCI_MAX_HALT_USEC);
        return ret;
 }