[U-Boot] [PATCH] usb: increase delay after port reset

Marek Vasut marek.vasut at gmail.com
Mon Apr 2 19:29:16 CEST 2012


Dear Ilya Yanok,

> In our setup (OMAP3 EHCI host, keyboard, mouse mass storage and BT
> dongle devices connected via several hubs) keyboard fails to initialize
> during the bus scan (stalled endpoint while get_descriptor/64) and after
> that keyboard is unusable (even in Linux) until power off/on.
> 
> Increasing the delay after port reset from 200ms to 260ms solves this
> problem.

Do we still have this problem?

> Signed-off-by: Ilya Yanok <yanok at emcraft.com>
> ---
>  common/usb.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/common/usb.c b/common/usb.c
> index bed5116..5e282c6 100644
> --- a/common/usb.c
> +++ b/common/usb.c
> @@ -1147,7 +1147,7 @@ void usb_hub_port_connect_change(struct usb_device
> *dev, int port) return;
>  	}
> 
> -	wait_ms(200);
> +	wait_ms(260);
> 
>  	/* Allocate a new device struct for it */
>  	usb = usb_alloc_new_device();

Best regards,
Marek Vasut


More information about the U-Boot mailing list