OSDN Git Service

net: phy: broadcom: Add statistics for all Gigabit PHYs
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 1 Apr 2021 16:42:33 +0000 (09:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Apr 2021 22:59:26 +0000 (15:59 -0700)
commit5a32fcdb1e686e90a2c5f2d095fb79aa2fb3f176
tree7e812564c79969d163361b287a5dbeb6277bb38c
parenta7a80b17c750c0f4b2c15cc61be5ff7c1d29f8d6
net: phy: broadcom: Add statistics for all Gigabit PHYs

All Gigabit PHYs use the same register layout as far as fetching
statistics goes. Fast Ethernet PHYs do not all support statistics, and
the BCM54616S would require some switching between the coper and fiber
modes to fetch the appropriate statistics which is not supported yet.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/broadcom.c