Commit 245ac1a1 authored by Joe Lawrence's avatar Joe Lawrence Committed by Jiri Slaby

xhci: gracefully handle xhci_irq dead device

commit 948fa135 upstream.

If the xHCI host controller has died (ie, device removed) or suffered
other serious fatal error (STS_FATAL), then xhci_irq should handle this
condition with IRQ_HANDLED instead of -ESHUTDOWN.
Signed-off-by: default avatarJoe Lawrence <joe.lawrence@stratus.com>
Signed-off-by: default avatarMathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
parent ef4a3593
...@@ -2794,7 +2794,7 @@ irqreturn_t xhci_irq(struct usb_hcd *hcd) ...@@ -2794,7 +2794,7 @@ irqreturn_t xhci_irq(struct usb_hcd *hcd)
xhci_halt(xhci); xhci_halt(xhci);
hw_died: hw_died:
spin_unlock(&xhci->lock); spin_unlock(&xhci->lock);
return -ESHUTDOWN; return IRQ_HANDLED;
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment