Re: usb: Error while assigning device slot ID
From: Mathias Nyman
Date: Thu Dec 04 2025 - 10:35:18 EST
Hi
On 12/4/25 13:09, Alexander Wilhelm wrote:
Hello USB developers,
I’m using an NXP LS1046A SoC with the integrated DWC3 USB controller in
host mode. On Linux v5.5.167 my USB flash drive was detected and mountable.
After upgrading to Linux v6.6.110 the USB flash drive is no longer
recognized. If it is already plugged in during boot phase I get the
following errors:
xhci-hcd xhci-hcd.2.auto: Error while assigning device slot ID: Command Aborted
xhci-hcd xhci-hcd.2.auto: Max number of devices this xHCI host supports is 127
And here is the kernel debug output:
user@host:~# cat /sys/kernel/debug/usb/xhci/xhci-hcd.3.auto/ports/port01/portsc
Powered Connected Disabled Link:Polling PortSpeed:1 Change: Wake: WDE WOE
I’ve also found that the function `xhci_alloc_dev` shows the error message.
I printed the `command` member variables and see that the `status` is
`COMP_COMMAND_ABORTED` and `slot_id` remains `0`. I have already seen
similar error patterns in some forums, but the suggested solutions didn’t
help me. Between these releases Kconfig has changed significantly; I may be
missing a config option, but I haven’t found one. Does anyone else see this
error pattern? Or maybe someone has a hint for me on how to proceed?
Looks like "enable slot" commands times out,
This is a simple internal xHCI command which shouldn't timeout
Could you enable xhci and usb core dynamic debug and share full dmesg after issue is seen.
mount -t debugfs none /sys/kernel/debug
echo 'module xhci_hcd =p' >/sys/kernel/debug/dynamic_debug/control
echo 'module usbcore =p' >/sys/kernel/debug/dynamic_debug/control
< Reproduce issue >
Send output of dmesg
Reasons for command not completing could be xHC being stopped, not processing commands due
to being suspended, or something preventing xchi interrupt, and driver misses the
command completion event
Is runtime PM enabled fo xHCI in your DWC3 setup?
It was enabled by default in 6.1 kernels for PCI based xhci 1.2 controllers.
Does your flash drive enumerate if you first force roothubs on, disabling runtime pm?
echo on > /sys/bus/usb/devices/usb*/power/control
Thanks
Mathias