APPLIED: [PATCH 0/4][SRU][F/H] Fix cold plugged USB device on certain PCIe USB cards

Kelsey Skunberg kelsey.skunberg at canonical.com
Tue Oct 12 22:44:46 UTC 2021


Applied to Hirsute and Focal master-next. Thank you! 

-Kelsey

On 2021-09-28 13:07:28 , Chris Chiu wrote:
> BugLink: https://bugs.launchpad.net/bugs/1945211
> 
> [SRU Justification]
> 
> [Impact]
> Cold plugged USB device was not detected on certain PCIe USB cards
> (like Inateck card connected to AM64 EVM or connected to J7200 EVM).
> And also the root hub mentioned in https://bugs.launchpad.net/bugs/1939638.
> 
> Re-plugging the USB device always gets it enumerated.
> 
> [Fix]
> As soonprimary roothub is registered, port status change is handled
> even before xHC is running and leads to cold plug USB devices not 
> detected. Register both root hubs along with the secondary hcd for xhci.
> 
> [Test Case]
> 1. Plug the USB device to the ports of problematic root hub.
> 2. Power on the machine.
> 3. Check if the USB device can work or not after boot.
> 
> [Regression Potential]
> Low. It simply make sure both primary and secondary roothubs are registered along with the second HCD.
> 
> Chris Chiu (1):
>   Revert "UBUNTU: SAUCE: Revert "usb: core: reduce power-on-good delay
>     time of root hub""
> 
> Kishon Vijay Abraham I (3):
>   usb: core: hcd: Add support for deferring roothub registration
>   xhci: Set HCD flag to defer primary roothub registration
>   usb: core: hcd: Modularize HCD stop configuration in usb_stop_hcd()
> 
>  drivers/usb/core/hcd.c  | 68 +++++++++++++++++++++++++++--------------
>  drivers/usb/core/hub.h  |  6 ++--
>  drivers/usb/host/xhci.c |  1 +
>  include/linux/usb/hcd.h |  2 ++
>  4 files changed, 52 insertions(+), 25 deletions(-)
> 
> -- 
> 2.25.1
> 
> 
> -- 
> kernel-team mailing list
> kernel-team at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team



More information about the kernel-team mailing list