usb: xhci: Clear XHCI_STATE_DYING on start
[pandora-kernel.git] / drivers / usb / host / xhci.c
index 950a8cc..2f51dec 100644 (file)
@@ -141,7 +141,8 @@ static int xhci_start(struct xhci_hcd *xhci)
                                "waited %u microseconds.\n",
                                XHCI_MAX_HALT_USEC);
        if (!ret)
-               xhci->xhc_state &= ~XHCI_STATE_HALTED;
+               xhci->xhc_state &= ~(XHCI_STATE_HALTED | XHCI_STATE_DYING);
+
        return ret;
 }