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

Alex Kiernan alex.kiernan at gmail.com
Fri Dec 7 12:29:03 UTC 2018


On Fri, Dec 7, 2018 at 11:54 AM Marek Vasut <marex at denx.de> wrote:
>
> 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 ?
>

Looks like it; I'll spin a v2 which uses that.

-- 
Alex Kiernan


More information about the U-Boot mailing list