]> 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)
commit2586254650c80714ff006b2c87593226bb046c9b
treebd0febd9addd089fcbb3ab449ecd2994693c47d7
parent8dc7e030c004aeb4f9d25c0bd25f02840593d093
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