]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/usb/host/xhci-ring.c
xhci: Cleanup only when releasing primary hcd
[karo-tx-linux.git] / drivers / usb / host / xhci-ring.c
index 52deae4b7eac2567201f0277d27cfd89c1b01499..1287339f11bbf198838110fefa067593eee6c429 100644 (file)
@@ -2721,7 +2721,8 @@ hw_died:
                writel(irq_pending, &xhci->ir_set->irq_pending);
        }
 
-       if (xhci->xhc_state & XHCI_STATE_DYING) {
+       if (xhci->xhc_state & XHCI_STATE_DYING ||
+           xhci->xhc_state & XHCI_STATE_HALTED) {
                xhci_dbg(xhci, "xHCI dying, ignoring interrupt. "
                                "Shouldn't IRQs be disabled?\n");
                /* Clear the event handler busy flag (RW1C);