[PATCH] net: ks8851: Reset internal RXFC count on bad packet

Tom Rini trini at konsulko.com
Tue Jan 19 21:01:27 CET 2021


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 <marex at denx.de>
> Cc: Eugen Hristev <eugen.hristev at microchip.com>
> Cc: Joe Hershberger <joe.hershberger at ni.com>
> Cc: Tom Rini <trini at konsulko.com>

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: <https://lists.denx.de/pipermail/u-boot/attachments/20210119/8509494a/attachment.sig>


More information about the U-Boot mailing list