usb: xhci: Increase xhci halt timeout

Currently, certain controllers with lower core clock rates, takes
more than 32ms to set the halted bit. This results in XHCI halt
timeout.
Fix this by increasing the timeout to 48ms.

Change-Id: I2f2715a11a947e01303c659e257ef0cabb311cac
Signed-off-by: Harsh Agarwal <harshq@codeaurora.org>
This commit is contained in:
Harsh Agarwal 2020-12-02 11:11:49 +05:30 • committed by Gerrit - the friendly Code Review server
commit 430a8df3f9

View file

@ -136,7 +136,7 @@ int xhci_halt(struct xhci_hcd *xhci)
xhci_quiesce(xhci);
ret = xhci_handshake(&xhci->op_regs->status,
STS_HALT, STS_HALT, 2 * XHCI_MAX_HALT_USEC);
STS_HALT, STS_HALT, 3 * XHCI_MAX_HALT_USEC);
if (ret) {
xhci_warn(xhci, "Host halt failed, %d\n", ret);
return ret;