linux-stable/drivers/usb/core
Mathias Nyman 1fbecf8e70 usb: hub: delay hub autosuspend if USB3 port is still link training
[ Upstream commit e86108940e ]

When initializing a hub we want to give a USB3 port in link training
the same debounce delay time before autosuspening the hub as already
trained, connected enabled ports.

USB3 ports won't reach the enabled state with "current connect status" and
"connect status change" bits set until the USB3 link training finishes.

Catching the port in link training (polling) and adding the debounce delay
prevents unnecessary failed attempts to autosuspend the hub.

Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-02-12 19:44:54 +01:00
..
buffer.c
config.c USB: Accept bulk endpoints with 1024-byte maxpacket 2018-05-09 09:50:23 +02:00
devices.c
devio.c USB: fix the usbfs flag sanitization for control transfers 2018-11-10 07:43:00 -08:00
driver.c USB: remove LPM management from usb_driver_claim_interface() 2018-10-03 17:01:50 -07:00
endpoint.c
file.c
generic.c USB:fix USB3 devices behind USB3 hubs not resuming at hibernate thaw 2018-04-24 09:34:11 +02:00
hcd-pci.c usb: Don't die twice if PCI xhci host is not responding in resume 2018-09-26 08:36:35 +02:00
hcd.c USB: Increment wakeup count on remote wakeup. 2018-05-01 15:13:05 -07:00
hub.c usb: hub: delay hub autosuspend if USB3 port is still link training 2019-02-12 19:44:54 +01:00
hub.h
Kconfig
ledtrig-usbport.c
Makefile
message.c usb: Avoid use-after-free by flushing endpoints early in usb_set_interface() 2018-09-26 08:36:36 +02:00
notify.c
of.c
otg_whitelist.h
port.c
quirks.c USB: Add USB_QUIRK_DELAY_CTRL_MSG quirk for Corsair K70 RGB 2019-01-16 22:12:31 +01:00
sysfs.c
urb.c
usb-acpi.c usb: optimize acpi companion search for usb port devices 2017-08-24 17:12:21 -07:00
usb.c USB: check usb_get_extra_descriptor for proper size 2018-12-13 09:20:27 +01:00
usb.h