Re: [PATCH v2] usb: xhci: print xhci->xhc_state when queue_command failed

Michał Pecio
2025-07-26T09:11:08Z

On Fri, 25 Jul 2025 19:32:37 +0800, Su Hui wrote:
> On 2025/7/25 18:03, Michał Pecio wrote:
> >> Hmm, any chance you came across bugs that upstream should know about?
> Actually, this bug is specific to the 5.4 version of the kernel and a
> particular USB camera. I am working
> to resolve this issue. When the xhci_hcd is initialized, the driver sets
> xhc_state to "halted", but before
> the xhci_hcd calls xhci_start, the hub starts Initializing. Hub
> initialization failed due to xhc_state being
> halted. Perhaps this issue is caused by hardware...

Trying to queue commands before the chip is ready sounds like a SW bug.
5.4 is ancient (and EOL soon), newer releases may have this bug fixed.