[U-Boot] [PATCH] USB: musb_udc: Bugfix musb_peri_rx_ep

Marek Vasut marex at denx.de
Fri Sep 14 02:39:30 CEST 2012


Dear Tom Rini,

> From: Pankaj Bharadiya <pankaj.bharadiya at ti.com>
> 
> The endpoint rx count register value will be zero if it is read before
> receive packet ready bit (PERI_RXCSR:RXPKTRDY) is set.
> 
> Check for the receive packet ready bit (PERI_RXCSR:RXPKTRDY) before
> reading endpoint rx count register. Proceed with rx count read and
> FIFO read only if RXPKTRDY bit is set.
> 
> As this makes the function fit less-well within 80 columns, use __func__
> in some debug statements rather than __PRETTY_FUNCTION__ as they are
> identical for C programs.

I'd say this is TI stuff, so let's push it through TI tree (both the musb 
patches please).

Best regards,
Marek Vasut


More information about the U-Boot mailing list