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)
commita0750d42e95192fa8d57796f35ca7189bd231bb4
treebd0febd9addd089fcbb3ab449ecd2994693c47d7
parentf9bc51e6cce2171e4d8f28c575278dfa07085b44
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