[EXT] Re: [RFC] usb: xhci: Some USB devices fail to initialize

Marek Vasut marex at denx.de
Sun Jul 7 02:53:06 CEST 2024


On 6/1/24 4:23 PM, Elena Popa wrote:
> Hi Marek,

Hi,

sorry for the really late reply.

>> Does it also work if you 'setenv usb_pgood_delay 2000' ?
>>
> No, the USB stick is still not initialized.
> 
>> Can you include the 5ms patch ?
> 
> I've attached the patch which makes it work. Of course, I'm not sure if this is the correct way to fix the problem. You can apply the patch on the master branch.

Does this delay have to be added to every control message (unlikely) or 
to some specific control message (likely) ?

Could you try and use the debug() statement in xhci_submit_control_msg() 
, as well as move the mdelay(5) there , to find out which exact control 
message requires this extra delay ? I also suspect this may not really 
be related to a specific control message, but instead some early part of 
initialization .


More information about the U-Boot mailing list