From 430a8df3f9946db08f3eebcf513a6568666b1685 Mon Sep 17 00:00:00 2001 From: Harsh Agarwal Date: Wed, 2 Dec 2020 11:11:49 +0530 Subject: [PATCH] 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 --- drivers/usb/host/xhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index 97c869c65ec1..e44b4404228e 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c @@ -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;