[U-Boot] [PATCH] usb: musb-new: Add CONFIG_USB_MUSB_INIT_TIMEOUT
Marek Vasut
marex at denx.de
Fri Dec 7 12:30:25 UTC 2018
On 12/07/2018 01:29 PM, Alex Kiernan wrote:
> 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.
I wonder if this code is needed at all, shouldn't the USB core deal with
this delay ?
--
Best regards,
Marek Vasut
More information about the U-Boot
mailing list