diff options
author | Joe Lawrence <joe.lawrence@stratus.com> | 2015-04-30 17:16:04 +0300 |
---|---|---|
committer | Zefan Li <lizefan@huawei.com> | 2015-09-18 09:20:39 +0800 |
commit | 6da66b35031ddefbfa29afc7fb96480ddf58e4b3 (patch) | |
tree | f8934b1ad4869a89559591520946d1784c3434ba | |
parent | 0a15af08f1f64256fe52d4666f3e200477dbb5ce (diff) | |
download | lwn-6da66b35031ddefbfa29afc7fb96480ddf58e4b3.tar.gz lwn-6da66b35031ddefbfa29afc7fb96480ddf58e4b3.zip |
xhci: gracefully handle xhci_irq dead device
commit 948fa13504f80b9765d2b753691ab94c83a10341 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: Joe Lawrence <joe.lawrence@stratus.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Zefan Li <lizefan@huawei.com>
-rw-r--r-- | drivers/usb/host/xhci-ring.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c index 744e97e7db53..5e93425424f6 100644 --- a/drivers/usb/host/xhci-ring.c +++ b/drivers/usb/host/xhci-ring.c @@ -2743,7 +2743,7 @@ irqreturn_t xhci_irq(struct usb_hcd *hcd) xhci_halt(xhci); hw_died: spin_unlock(&xhci->lock); - return -ESHUTDOWN; + return IRQ_HANDLED; } /* |