Return-Path: Received: from mga03.intel.com ([134.134.136.65]:48668 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750705AbbD3OOI (ORCPT ); Thu, 30 Apr 2015 10:14:08 -0400 From: Mathias Nyman To: Cc: , Joe Lawrence , , Mathias Nyman Subject: [PATCH 3/3] xhci: gracefully handle xhci_irq dead device Date: Thu, 30 Apr 2015 17:16:04 +0300 Message-Id: <1430403364-8054-4-git-send-email-mathias.nyman@linux.intel.com> In-Reply-To: <1430403364-8054-1-git-send-email-mathias.nyman@linux.intel.com> References: <1430403364-8054-1-git-send-email-mathias.nyman@linux.intel.com> Sender: stable-owner@vger.kernel.org List-ID: From: Joe Lawrence 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 Cc: Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-ring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c index ae0894c..7d34cbf 100644 --- a/drivers/usb/host/xhci-ring.c +++ b/drivers/usb/host/xhci-ring.c @@ -2645,7 +2645,7 @@ irqreturn_t xhci_irq(struct usb_hcd *hcd) xhci_halt(xhci); hw_died: spin_unlock(&xhci->lock); - return -ESHUTDOWN; + return IRQ_HANDLED; } /* -- 1.8.3.2