On Thu, Aug 19, 2021 at 04:18:12PM +0300, Mathias Nyman wrote: > On 19.8.2021 10.54, Kishon Vijay Abraham I wrote: > > Hi All, > > > > I was trying to test PCIe USB card (Inateck) connected to AM64 EVM and > > J7200 EVM. Inateck uses Renesas uPD720201 USB3 host controller. > > > > So if I connect USB pendrive and then boot the board (cold plug), I > > don't see the pendrive getting detected. But if I remove and plug it > > again, it gets detected. > > > > For the cold plug case, I see this message > > "usb usb1-port3: couldn't allocate usb_device" > > > > It actually fails in > > xhci_alloc_dev()->xhci_queue_slot_control()->queue_command()->XHCI_STATE_HALTED > > > > I'm not familiar with xhci but it looks like port event is invoked > > before the controller is fully initialized (?). > > Maybe this controller is capable of generating interrupts before it's running? Mathias and Kishon: Note that this issue has also been reported in Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=214021 Alan Stern