]> git.baikalelectronics.ru Git - kernel.git/commit
mv88e6xxx: Add serdes Rx statistics
authorNikita Yushchenko <nikita.yoush@cogentembedded.com>
Wed, 25 Dec 2019 05:22:38 +0000 (08:22 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 28 Dec 2019 00:34:15 +0000 (16:34 -0800)
commit60eb18f71003d6e8333f149b00f96fc398024f0f
tree3467f3dca6afbcc9371819980ce324b2cc84b19b
parent98b959292d7615fde28586fa63ff30be365835e8
mv88e6xxx: Add serdes Rx statistics

If packet checker is enabled in the serdes, then Rx counter registers
start working, and no side effects have been detected.

This patch enables packet checker automatically when powering serdes on,
and exposes Rx counter registers via ethtool statistics interface.

Code partially basded by older attempt by Andrew Lunn.

Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/serdes.c
drivers/net/dsa/mv88e6xxx/serdes.h