Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0d2bba96 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "xhci: Fix possible interrupt storm with suspend failure"

parents 0bcc3683 35725347
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -985,6 +985,12 @@ int xhci_suspend(struct xhci_hcd *xhci, bool do_wakeup)
	if (xhci_handshake(&xhci->op_regs->status,
		      STS_HALT, STS_HALT, delay)) {
		xhci_warn(xhci, "WARN: xHC CMD_RUN timeout\n");
		/* Set the HW_ACCESSIBLE so that any pending interrupts are
		 * served.
		 */
		set_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags);
		set_bit(HCD_FLAG_HW_ACCESSIBLE, &xhci->shared_hcd->flags);
		xhci_hc_died(xhci);
		spin_unlock_irq(&xhci->lock);
		return -ETIMEDOUT;
	}