Skip to content

Commit 33597f0

Browse files
matnymangregkh
authored andcommitted
xhci: increase usb U3 -> U0 link resume timeout from 100ms to 500ms
The first U3 wake signal by the host may be lost if the USB 3 connection is tunneled over USB4, with a runtime suspended USB4 host, and firmware implemented connection manager. Specs state the host must wait 100ms (tU3WakeupRetryDelay) before resending a U3 wake signal if device doesn't respond, leading to U3 -> U0 link transition times around 270ms in the tunneled case. Fixes: 0200b9f ("xhci: Wait until link state trainsits to U0 after setting USB_SS_PORT_LS_U0") Cc: stable@vger.kernel.org Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> Link: https://lore.kernel.org/r/20220408134823.2527272-4-mathias.nyman@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent dc92944 commit 33597f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/usb/host/xhci-hub.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1434,7 +1434,7 @@ int xhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
14341434
}
14351435
spin_unlock_irqrestore(&xhci->lock, flags);
14361436
if (!wait_for_completion_timeout(&bus_state->u3exit_done[wIndex],
1437-
msecs_to_jiffies(100)))
1437+
msecs_to_jiffies(500)))
14381438
xhci_dbg(xhci, "missing U0 port change event for port %d-%d\n",
14391439
hcd->self.busnum, wIndex + 1);
14401440
spin_lock_irqsave(&xhci->lock, flags);

0 commit comments

Comments
 (0)