]> git.karo-electronics.de Git - linux-beck.git/commit
net: phy: broadcom: Add support code for reading PHY counters
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 29 Nov 2016 17:57:17 +0000 (09:57 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Nov 2016 15:22:27 +0000 (10:22 -0500)
commit820ee17b8d3b2a57b1ea20b247cc6a1dddaf8b8d
tree4a918fdbf106440d083b2673afef58e2de79384d
parent5a6681e22c1409089132085811857d6da828761b
net: phy: broadcom: Add support code for reading PHY counters

Broadcom PHYs expose a number of PHY error counters: receive errors,
false carrier sense, SerDes BER count, local and remote receive errors.
Add support code to allow retrieving these error counters. Since the
Broadcom PHY library code is used by several drivers, make it possible
for them to specify the storage for the software copy of the statistics.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/bcm-phy-lib.c
drivers/net/phy/bcm-phy-lib.h
include/linux/brcmphy.h