]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit217d2451a8ffada462451d1a490ae2bb1665431e
tree7e812564c79969d163361b287a5dbeb6277bb38c
parent241662b818066a7ac3dfaa2de39103671927947c
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