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

Commit e3b50ff0 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: xhci: Reduce command abort handshake timeout"

parents b6645f62 47fae5d1
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -354,14 +354,13 @@ static int xhci_abort_cmd_ring(struct xhci_hcd *xhci, unsigned long flags)
			&xhci->op_regs->cmd_ring);

	/* Section 4.6.1.2 of xHCI 1.0 spec says software should
	 * time the completion od all xHCI commands, including
	 * time the completion of all xHCI commands, including
	 * the Command Abort operation. If software doesn't see
	 * CRR negated in a timely manner (e.g. longer than 5
	 * seconds), then it should assume that the there are
	 * larger problems with the xHC and assert HCRST.
	 * CRR negated in a timely manner, then it should assume
	 * that the there are larger problems with the xHC and assert HCRST.
	 */
	ret = xhci_handshake_check_state(xhci, &xhci->op_regs->cmd_ring,
			CMD_RING_RUNNING, 0, 5 * 1000 * 1000);
			CMD_RING_RUNNING, 0, 1000 * 1000);
	if (ret < 0) {
		xhci_err(xhci,
			 "Stop command ring failed, maybe the host is dead\n");