[RESEND][PATCH 3/3] usb.c: Add a retry in the usb_prepare_device()

Marek Vasut marex at denx.de
Tue Aug 18 23:06:31 CEST 2020


On 8/18/20 8:01 PM, Jason Wessel wrote:
>>From the Raspberry Pi3 - With the patch removed:
> 
> U-Boot> setenv usb_pgood_delay 2000
> U-Boot> usb reset
> resetting USB...
> Bus usb at 7e980000: USB DWC2
> scanning bus usb at 7e980000 for devices... unable to get device descriptor (error=-22)
> 6 USB Device(s) found
>        scanning usb for storage devices... 1 Storage Device(s) found
> 
> 
> The only way I found to make it work reliably was to have it retry in the usb_prepare_device().
> 
> Jason.
> 
> 
> On 8/18/20 10:08 AM, Marek Vasut wrote:
>> On 8/18/20 4:34 PM, Jason Wessel wrote:
>>> I have found through testing some USB 2 composite mouse/keyboard
>>> devices do not response to the usb_set_address call immediately
>>> following the port reset.  It can take anywhere from 2ms to 20ms.
>>
>> Does it work if you do
>>
>> => setenv usb_pgood_delay 2000
>>
>> before your test ?

Please stop top-posting.

Can you check whether the pgood_delay isn't EHCI-only ? It does sure
look similar to the problems which pgood_delay was supposed to help with.


More information about the U-Boot mailing list