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

Tim Gardner tim.gardner at canonical.com
Tue Sep 28 13:09:40 UTC 2021


Acked-by: Tim Gardner <tim.gardner at canonical.com>

On 9/27/21 11:07 PM, 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(-)
> 

-- 
-----------
Tim Gardner
Canonical, Inc



More information about the kernel-team mailing list