提交 c96a2b81 编写于 作者: S Sarah Sharp 提交者: Greg Kroah-Hartman

USB: xhci: Clean up xhci_irq() function.

Drop spinlock in xhci_irq() error path.
This fixes the issue reported by Oliver Neukum on this thread:
	http://marc.info/?l=linux-usb&m=124090924401444&w=2

Remove unnecessary register read reported by Viral Mehta:
	http://marc.info/?l=linux-usb&m=124091326007398&w=2Reported-by: NOliver Neukum <oliver@neukum.org>
Reported-by: NViral Mehta <viral.mehta@einfochips.com>
Signed-off-by: NSarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 23e3be11
...@@ -276,11 +276,11 @@ irqreturn_t xhci_irq(struct usb_hcd *hcd) ...@@ -276,11 +276,11 @@ irqreturn_t xhci_irq(struct usb_hcd *hcd)
return IRQ_NONE; return IRQ_NONE;
} }
temp = xhci_readl(xhci, &xhci->op_regs->status);
if (temp & STS_FATAL) { if (temp & STS_FATAL) {
xhci_warn(xhci, "WARNING: Host System Error\n"); xhci_warn(xhci, "WARNING: Host System Error\n");
xhci_halt(xhci); xhci_halt(xhci);
xhci_to_hcd(xhci)->state = HC_STATE_HALT; xhci_to_hcd(xhci)->state = HC_STATE_HALT;
spin_unlock(&xhci->lock);
return -ESHUTDOWN; return -ESHUTDOWN;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册