]> 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 2b63969c2bbf8e5f202cb99d3d5c13e5e6f0d502..920296f555dd0fb860827ac39414ab0cb26b9c13 100644 (file)
@@ -2727,7 +2727,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);