android_kernel_motorola_sm6375/drivers/usb
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Kishon Vijay Abraham I 1b767500d1 usb: core: hcd: Add support for deferring roothub registration
commit a44623d9279086c89f631201d993aa332f7c9e66 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.

This patch has been added and reverted earier as it triggered a race
in usb device enumeration.
That race is now fixed in 5.16-rc3, and in stable back to 5.4
commit 6cca13de26ee ("usb: hub: Fix locking issues with address0_mutex")
commit 6ae6dc22d2d1 ("usb: hub: Fix usb enumeration issue due to address0
race")

CC: [email protected] # 5.4+
Suggested-by: Mathias Nyman <[email protected]>
Tested-by: Chris Chiu <[email protected]>
Acked-by: Alan Stern <[email protected]>
Signed-off-by: Kishon Vijay Abraham I <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2022-06-14 18:11:24 +02:00
..
atm
c67x00
cdns3 usb: cdns3: fix race condition before setting doorbell 2021-10-06 15:42:30 +02:00
chipidea USB: chipidea: fix interrupt deadlock 2021-11-17 09:48:27 +01:00
class usb: cdc-wdm: fix reading stuck on device close 2022-05-18 09:47:26 +02:00
common usb: ulpi: Call of_node_put correctly 2022-02-16 12:52:52 +01:00
core usb: core: hcd: Add support for deferring roothub registration 2022-06-14 18:11:24 +02:00
dwc2 usb: dwc2: gadget: don't try to disable ep0 in dwc2_hsotg_suspend 2022-02-16 12:52:49 +01:00
dwc3 usb: dwc3: gadget: Return proper request status 2022-05-09 09:03:22 +02:00
early
gadget usb: gadget: configfs: clear deactivation flag in configfs_composite_unbind() 2022-05-09 09:03:22 +02:00
host USB: Fix xhci event ring dequeue pointer ERDP update issue 2022-05-09 09:03:23 +02:00
image
isp1760
misc usb: misc: fix improper handling of refcount in uss720_probe() 2022-05-09 09:03:21 +02:00
mon
mtu3 usb: mtu3: fix USB 3.0 dual-role-switch from device to host 2022-05-09 09:03:20 +02:00
musb usb: musb: tusb6010: check return value after calling platform_get_resource() 2021-11-26 10:47:14 +01:00
phy
renesas_usbhs
roles
serial USB: serial: option: add Quectel BG95 modem 2022-06-14 18:11:23 +02:00
storage USB: storage: ums-realtek: fix error code in rts51x_read_mem() 2022-04-15 14:18:16 +02:00
typec usb: typec: tcpci: Don't skip cleanup in .remove() on error 2022-05-18 09:47:27 +02:00
usbip usbip:vhci_hcd USB port can get stuck in the disabled state 2021-09-22 12:26:35 +02:00
Kconfig
Makefile
usb-skeleton.c