android_kernel_sony_sdm845/drivers/usb/core
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jan-Marek Glogowski c4b857a5f3 usb: handle warm-reset port requests on hub resume
[ Upstream commit 4fdc1790e6a9ef22399c6bc6e63b80f4609f3b7e ]

On plug-in of my USB-C device, its USB_SS_PORT_LS_SS_INACTIVE
link state bit is set. Greping all the kernel for this bit shows
that the port status requests a warm-reset this way.

This just happens, if its the only device on the root hub, the hub
therefore resumes and the HCDs status_urb isn't yet available.
If a warm-reset request is detected, this sets the hubs event_bits,
which will prevent any auto-suspend and allows the hubs workqueue
to warm-reset the port later in port_event.

Signed-off-by: Jan-Marek Glogowski <glogow@fbihome.de>
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-11-06 12:18:03 +01:00
..
buffer.c usb: core: buffer: avoid NULL pointer dereferrence 2016-04-28 12:35:36 -07:00
config.c USB: usbcore: Fix slab-out-of-bounds bug during device reset 2019-09-21 07:14:08 +02:00
devices.c usb: core: rename mutex usb_bus_list_lock to usb_bus_idr_lock 2016-02-06 21:55:57 -08:00
devio.c usb: usbfs: fix double-free of usb memory upon submiturb error 2019-08-25 10:51:17 +02:00
driver.c USB: core: Fix bug caused by duplicate interface PM usage counter 2019-05-08 07:19:08 +02:00
endpoint.c
file.c USB: core: Fix races in character device registration and deregistraion 2019-08-25 10:51:48 +02:00
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: core: Add PM runtime calls to usb_hcd_platform_shutdown 2019-05-31 06:48:30 -07:00
hub.c usb: handle warm-reset port requests on hub resume 2019-11-06 12:18:03 +01:00
hub.h
Kconfig usb: core: Introduce a USB port LED trigger 2016-09-27 12:20:17 +02:00
ledtrig-usbport.c usb: core: usbport: Use proper LED API to fix potential crash 2017-01-06 10:40:11 +01:00
Makefile usb: core: Introduce a USB port LED trigger 2016-09-27 12:20:17 +02:00
message.c USB: CDC: fix sanity checks in CDC union parser 2019-08-25 10:51:49 +02:00
notify.c
of.c usb: core: of.c: fix defined but not declare warning 2016-08-09 16:16:13 +02:00
otg_whitelist.h usb: core: use IS_ENABLED() instead of checking for built-in or module 2016-09-02 14:36:33 +02:00
port.c Revert "USB / PM: Allow USB devices to remain runtime-suspended when sleeping" 2016-05-02 08:44:31 -07:00
quirks.c USB: Fix chipmunk-like voice when using Logitech C270 for recording audio. 2019-06-22 08:17:20 +02:00
sysfs.c USB: Add new USB LPM helpers 2019-05-02 09:32:02 +02:00
urb.c USB: core: replace %p with %pK 2017-05-25 15:44:30 +02:00
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 USB: Add new USB LPM helpers 2019-05-02 09:32:02 +02:00