Skip to content

Commit ca09b1b

Browse files
qzedgregkh
authored andcommitted
usb: xhci: Increase timeout for HC halt
On some devices (specifically the SC8180x based Surface Pro X with QCOM04A6) HC halt / xhci_halt() times out during boot. Manually binding the xhci-hcd driver at some point later does not exhibit this behavior. To work around this, double XHCI_MAX_HALT_USEC, which also resolves this issue. Cc: <[email protected]> Signed-off-by: Maximilian Luz <[email protected]> Signed-off-by: Mathias Nyman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent dda32c0 commit ca09b1b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/usb/host/xhci-ext-caps.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
* Author: Sarah Sharp
88
* Some code borrowed from the Linux EHCI driver.
99
*/
10-
/* Up to 16 ms to halt an HC */
11-
#define XHCI_MAX_HALT_USEC (16*1000)
10+
11+
/* HC should halt within 16 ms, but use 32 ms as some hosts take longer */
12+
#define XHCI_MAX_HALT_USEC (32 * 1000)
1213
/* HC not running - set to 1 when run/stop bit is cleared. */
1314
#define XHCI_STS_HALT (1<<0)
1415

0 commit comments

Comments
 (0)