[U-Boot] [PATCH] usb: dwc2: Add delay to fix the USB detection problem on SoCFPGA

Chin Liang See clsee at altera.com
Fri May 6 15:28:54 CEST 2016


On Fri, 2016-05-06 at 13:53 +0200, Stefan Roese wrote:
> With patch c998da0d (usb: Change power-on / scanning timeout
> handling),
> the USB scanning is started earlier and with a smaller timeout. This
> resulted on SoCFPGA (using the DWC2 driver) in some USB sticks not
> getting detected any more. This patch now adds a 1 second delay (in
> the host mode only) to the DWC2 driver before the scanning is
> started.
> With this delay, now all problematic USB keys are detected
> successfully
> again. And there is no need any more to change the delay / timeout
> in the common USB code (usb_hub.c).
> 
> Signed-off-by: Stefan Roese <sr at denx.de>
> Cc: Chin Liang See <clsee at altera.com>
> Cc: Dinh Nguyen <dinguyen at opensource.altera.com>
> Cc: Hans de Goede <hdegoede at redhat.com>
> Cc: Stephen Warren <swarren at nvidia.com>
> Cc: Marek Vasut <marex at denx.de>
> ---
>  drivers/usb/host/dwc2.c | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> 

For record, works for my problematic pen drives. This is apply on top
of Marek's patch except 7/7

Reviewed-by: Chin Liang See <clsee at altera.com>
Tested-by: Chin Liang See <clsee at altera.com>

Thanks
Chin Liang


More information about the U-Boot mailing list