From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Tue, 19 Jan 2021 15:01:27 -0500 Subject: [PATCH] net: ks8851: Reset internal RXFC count on bad packet In-Reply-To: <20210106141601.64507-1-marex@denx.de> References: <20210106141601.64507-1-marex@denx.de> Message-ID: <20210119200127.GS9782@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Jan 06, 2021 at 03:16:01PM +0100, Marek Vasut wrote: > A sporadic condition occurs when the "bad packet" error is triggered > repeatedly, which results in "bad packet" messages scrolling on the > console during transfer. To avoid triggering this, reset the internal > RXFC count on the first occurance of the "bad packet", which forces > the code to re-read the RX packet count from the MAC, and prevents > any additional "bad packet" messages if there are no more packets in > the MAC. Also print better debug information if this condition occurs. > > Signed-off-by: Marek Vasut > Cc: Eugen Hristev > Cc: Joe Hershberger > Cc: Tom Rini Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: