[U-Boot] [PATCH] usb: r8a66597: convert wait loop to readw_poll_timeout

Chris Brandt Chris.Brandt at renesas.com
Wed Nov 29 19:48:24 UTC 2017


On Wednesday, November 29, 2017, Fabio Estevam wrote:
> > +               if (readw_poll_timeout(r8a66597->reg + DCPCTR, dcpctr,
> > +                                      dcpctr & BSTS, 1000) < 0) {
> > +                       printf("DCPCTR BSTS timeout!\n");
> > +                       return -1;
> 
> What about returning -ETIMEDOUT instead?


OK, that sounds reasonable.


Chris


More information about the U-Boot mailing list