|
@@ -850,6 +850,10 @@ void xhci_stop_endpoint_command_watchdog(unsigned long arg)
|
|
spin_lock_irqsave(&xhci->lock, flags);
|
|
spin_lock_irqsave(&xhci->lock, flags);
|
|
|
|
|
|
ep->stop_cmds_pending--;
|
|
ep->stop_cmds_pending--;
|
|
|
|
+ if (xhci->xhc_state & XHCI_STATE_REMOVING) {
|
|
|
|
+ spin_unlock_irqrestore(&xhci->lock, flags);
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
if (xhci->xhc_state & XHCI_STATE_DYING) {
|
|
if (xhci->xhc_state & XHCI_STATE_DYING) {
|
|
xhci_dbg_trace(xhci, trace_xhci_dbg_cancel_urb,
|
|
xhci_dbg_trace(xhci, trace_xhci_dbg_cancel_urb,
|
|
"Stop EP timer ran, but another timer marked "
|
|
"Stop EP timer ran, but another timer marked "
|
|
@@ -903,7 +907,7 @@ void xhci_stop_endpoint_command_watchdog(unsigned long arg)
|
|
spin_unlock_irqrestore(&xhci->lock, flags);
|
|
spin_unlock_irqrestore(&xhci->lock, flags);
|
|
xhci_dbg_trace(xhci, trace_xhci_dbg_cancel_urb,
|
|
xhci_dbg_trace(xhci, trace_xhci_dbg_cancel_urb,
|
|
"Calling usb_hc_died()");
|
|
"Calling usb_hc_died()");
|
|
- usb_hc_died(xhci_to_hcd(xhci)->primary_hcd);
|
|
|
|
|
|
+ usb_hc_died(xhci_to_hcd(xhci));
|
|
xhci_dbg_trace(xhci, trace_xhci_dbg_cancel_urb,
|
|
xhci_dbg_trace(xhci, trace_xhci_dbg_cancel_urb,
|
|
"xHCI host controller is dead.");
|
|
"xHCI host controller is dead.");
|
|
}
|
|
}
|