]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: icplus: add PHY counter for IP101G
authorMichael Walle <michael@walle.cc>
Thu, 11 Feb 2021 07:47:49 +0000 (08:47 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Feb 2021 21:53:26 +0000 (13:53 -0800)
commitc1df162e76ee4f4281fa357224c049aaaf20e71c
treebd0febd9addd089fcbb3ab449ecd2994693c47d7
parent408dc7d0ae782583f84eeabc95189849906b35c6
net: phy: icplus: add PHY counter for IP101G

The IP101G provides three counters: RX packets, CRC errors and symbol
errors. The error counters can be configured to clear automatically on
read. Unfortunately, this isn't true for the RX packet counter. Because
of this and because the RX packet counter is more likely to overflow,
than the error counters implement only support for the error counters.

Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/icplus.c