linux-stable/drivers/usb/core
Dominik Bozek f17d397bfe usb: hub: Don't wait for connect state at resume for powered-off ports
[ Upstream commit 5d111f5190 ]

wait_for_connected() wait till a port change status to
USB_PORT_STAT_CONNECTION, but this is not possible if
the port is unpowered. The loop will only exit at timeout.

Such case take place if an over-current incident happen
while system is in S3. Then during resume wait_for_connected()
will wait 2s, which may be noticeable by the user.

Signed-off-by: Dominik Bozek <dominikx.bozek@intel.com>
Signed-off-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-08-03 07:50:40 +02:00
..
buffer.c
config.c USB: Accept bulk endpoints with 1024-byte maxpacket 2018-05-09 09:51:55 +02:00
devices.c
devio.c
driver.c
endpoint.c
file.c
generic.c USB:fix USB3 devices behind USB3 hubs not resuming at hibernate thaw 2018-04-24 09:36:25 +02:00
hcd-pci.c
hcd.c USB: Increment wakeup count on remote wakeup. 2018-05-01 12:58:11 -07:00
hub.c usb: hub: Don't wait for connect state at resume for powered-off ports 2018-08-03 07:50:40 +02:00
hub.h
Kconfig
ledtrig-usbport.c USB: ledtrig-usbport: fix of-node leak 2018-03-19 08:42:48 +01:00
Makefile
message.c usb: quirks: add control message delay for 1b1c:1b20 2018-03-19 08:42:46 +01:00
notify.c
of.c
otg_whitelist.h
port.c
quirks.c usb: quirks: add delay quirks for Corsair Strafe 2018-07-17 11:39:26 +02:00
sysfs.c
urb.c usb: core: Add a helper function to check the validity of EP type in URB 2018-02-25 11:07:45 +01:00
usb-acpi.c
usb.c
usb.h