]> www.infradead.org Git - users/dwmw2/linux.git/commit
xhci: turn off port power in shutdown
authorMathias Nyman <mathias.nyman@linux.intel.com>
Thu, 23 Jun 2022 11:19:43 +0000 (14:19 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jun 2022 06:59:50 +0000 (08:59 +0200)
commitb8142a84657eb464e4d7b2f6e509fdf70629bcb2
treea4dea34b562497deca74b3492f1d446d593c43e8
parent116c3e81b0537ac6ea89445ff235edc8d9e64d51
xhci: turn off port power in shutdown

commit 83810f84ecf11dfc5a9414a8b762c3501b328185 upstream.

If ports are not turned off in shutdown then runtime suspended
self-powered USB devices may survive in U3 link state over S5.

During subsequent boot, if firmware sends an IPC command to program
the port in DISCONNECT state, it will time out, causing significant
delay in the boot time.

Turning off roothub port power is also recommended in xhci
specification 4.19.4 "Port Power" in the additional note.

Cc: stable@vger.kernel.org
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20220623111945.1557702-3-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-hub.c
drivers/usb/host/xhci.c
drivers/usb/host/xhci.h