BACKPORT: xhci: Improve the XHCI system resume time
Avoid extra 120ms delay during system resume. The xHC controller may signal wake up to 120ms before showing which usb device caused the wake on the xHC port registers. The xhci driver therefore checks for port activity up to 120ms during resume, making sure that the hub driver can see the port change, and won't immediately runtime suspend back due to no port activity. This is however only needed for runtime resume as system resume will resume all child hubs and other child usb devices anyway. Fixes:253f588c70("xhci: Improve detection of device initiated wake signal.") Signed-off-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com> Acked-by: Mathias Nyman <mathias.nyman@linux.intel.com> Link: https://lore.kernel.org/r/20230428140056.1318981-3-Basavaraj.Natikar@amd.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: William Wu <william.wu@rock-chips.com> (cherry picked from commit1c024241d0) Change-Id: Icf4e8c97b3d5f6e9550fcad0e748c7badf1b22df
This commit is contained in:
committed by
Tao Huang
parent
824a8b7fd5
commit
e7893cb391
@@ -1258,7 +1258,7 @@ int xhci_resume(struct xhci_hcd *xhci, bool hibernated)
|
||||
* the first wake signalling failed, give it that chance.
|
||||
*/
|
||||
pending_portevent = xhci_pending_portevent(xhci);
|
||||
if (!pending_portevent) {
|
||||
if (!pending_portevent && !IS_ENABLED(CONFIG_ARCH_ROCKCHIP)) {
|
||||
msleep(120);
|
||||
pending_portevent = xhci_pending_portevent(xhci);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user