From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Fri, 14 Sep 2012 02:39:30 +0200 Subject: [U-Boot] [PATCH] USB: musb_udc: Bugfix musb_peri_rx_ep In-Reply-To: <1347557191-32760-1-git-send-email-trini@ti.com> References: <1347557191-32760-1-git-send-email-trini@ti.com> Message-ID: <201209140239.30789.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Tom Rini, > From: Pankaj Bharadiya > > 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