Dear Orjan Friberg,
In message <4e11d02e.7030...@flatfrog.com> you wrote:
> The following construct (musb_hcd.c, usb_lowlevel_init)
>
> timeout = musb_cfg.timeout;
> while (timeout--)
> if (readb(&musbr->devctl) & MUSB_DEVCTL_HM)
> break;
>
The following construct (musb_hcd.c, usb_lowlevel_init)
timeout = musb_cfg.timeout;
while (timeout--)
if (readb(&musbr->devctl) & MUSB_DEVCTL_HM)
break;
will leave timeout == -1 when the timeout is reached, hence the timeout
detecting code t
2 matches
Mail list logo