linux/drivers/usb/core
Kishon Vijay Abraham I d58fc9e9c1 usb: core: hcd: Add support for deferring roothub registration
commit 58877b0824 upstream.

It has been observed with certain PCIe USB cards (like Inateck connected
to AM64 EVM or J7200 EVM) that as soon as the primary roothub is
registered, port status change is handled even before xHC is running
leading to cold plug USB devices not detected. For such cases, registering
both the root hubs along with the second HCD is required. Add support for
deferring roothub registration in usb_add_hcd(), so that both primary and
secondary roothubs are registered along with the second HCD.

CC: stable@vger.kernel.org # 5.4+
Suggested-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Tested-by: Chris Chiu <chris.chiu@canonical.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Link: https://lore.kernel.org/r/20210909064200.16216-2-kishon@ti.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-09-30 10:11:00 +02:00
..
buffer.c
config.c
devices.c USB: core: remove polling for /sys/kernel/debug/usb/devices 2020-10-02 15:32:46 +02:00
devio.c USB: core: Fix incorrect pipe calculation in do_proc_control() 2021-08-26 08:35:34 -04:00
driver.c usbcore: Check both id_table and match() when both available 2020-10-28 13:24:58 +01:00
endpoint.c
file.c
generic.c usbcore: Check both id_table and match() when both available 2020-10-28 13:24:58 +01:00
hcd-pci.c usb: hcd: Fix use after free in usb_hcd_pci_remove() 2020-08-18 12:09:52 +02:00
hcd.c usb: core: hcd: Add support for deferring roothub registration 2021-09-30 10:11:00 +02:00
hub.c usb: hub: Fix link power management max exit latency (MEL) calculations 2021-07-28 14:35:43 +02:00
hub.h usb: core: reduce power-on-good delay time of root hub 2021-06-03 09:00:52 +02:00
Kconfig USB: hub: Add Kconfig option to reduce number of port initialization retries 2020-10-02 11:29:02 +02:00
ledtrig-usbport.c
Makefile
message.c USB: core: Avoid WARNings for 0-length descriptor requests 2021-08-26 08:35:34 -04:00
notify.c
of.c
otg_productlist.h
phy.c
phy.h
port.c
quirks.c Revert "USB: quirks: ignore remote wake-up on Fibocom L850-GL LTE modem" 2021-07-28 14:35:41 +02:00
sysfs.c usb: core: fix slab-out-of-bounds Read in read_descriptors 2020-09-04 16:41:22 +02:00
urb.c USB: move snd_usb_pipe_sanity_check into the USB core 2020-09-16 11:02:23 +02:00
usb-acpi.c
usb.c drm: Use USB controller's DMA mask when importing dmabufs 2021-03-17 17:06:19 +01:00
usb.h usbcore: Check both id_table and match() when both available 2020-10-28 13:24:58 +01:00