[U-Boot-Users] [PATCH] Delays for crappy USB keys

Wolfgang Denk wd at denx.de
Tue Mar 6 11:56:55 CET 2007


In message <20070306101800.GA7521 at gundam.enneenne.com> you wrote:
> 
> I noticed that using this patch:
> 
> diff --git a/common/usb.c b/common/usb.c
> index 0857494..087a65f 100644
> --- a/common/usb.c
> +++ b/common/usb.c
> @@ -61,7 +61,7 @@ #undef USB_DEBUG
>  #ifdef USB_DEBUG
>  #define        USB_PRINTF(fmt,args...) printf (fmt ,##args)
>  #else
> -#define USB_PRINTF(fmt,args...)
> +#define USB_PRINTF(fmt,args...)        wait_ms(1) /* for crappy USB keys... */
>  #endif
> 
> allows crappy USB keys to work well. :)

Ummm.. I guess I don't have to tell you that this is  just  a  pretty
dirty  hack;  can  you please try to find out where exactly the delay
should be added to the code?

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk
Office:  Kirchenstr. 5,       D-82194 Groebenzell,            Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A door is what a dog is perpetually on the wrong side of.
                                                        - Ogden Nash




More information about the U-Boot mailing list