Thread (5 messages) 5 messages, 3 authors, 2021-08-20

Re: [QUERY] Cold plugged USB device to Inateck PCIE USB card is not detected

From: Mathias Nyman <hidden>
Date: 2021-08-20 08:24:26
Also in: lkml

On 19.8.2021 18.09, Alan Stern wrote:
On Thu, Aug 19, 2021 at 04:18:12PM +0300, Mathias Nyman wrote:
quoted
On 19.8.2021 10.54, Kishon Vijay Abraham I wrote:
quoted
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
Thanks, 

I'll follow up on that one.

-Mathias
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help