[U-Boot] [PATCH] usb: musb-new: Add CONFIG_USB_MUSB_INIT_TIMEOUT

Marek Vasut marex at denx.de
Fri Dec 7 11:48:45 UTC 2018


On 12/07/2018 09:56 AM, Alex Kiernan wrote:
[...]
> +++ b/drivers/usb/musb-new/musb_uboot.c
> @@ -214,7 +214,7 @@ int musb_lowlevel_init(struct musb_host_data *host)
>  {
>  	void *mbase;
>  	/* USB spec says it may take up to 1 second for a device to connect */
> -	unsigned long timeout = get_timer(0) + 1000;
> +	unsigned long timeout = get_timer(0) + CONFIG_USB_MUSB_INIT_TIMEOUT;

Isn't this the same as usb_pgood_delay ?

>  	int ret;
>  
>  	if (!host->host) {
> 


-- 
Best regards,
Marek Vasut


More information about the U-Boot mailing list