Re: [U-Boot] [PATCH] MUSB timeout broken

2011-07-04 Thread Wolfgang Denk
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; >

[U-Boot] [PATCH] MUSB timeout broken

2011-07-04 Thread Orjan Friberg
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