# \[PATCH net-next v3 0/2\] net: phy: broadcom: Support for PHY counters

- From: Florian Fainelli \<f.fainelli@gmail.com\>
- Date: 2016-11-29 17:57:25 
- List: netdev
- Page: https://ratatoskr.run/netdev/2016/11/11036416
- Thread: https://ratatoskr.run/netdev/2016/11/11036416/t.md

```text
Hi all,

This patch series adds support for reading the Broadcom PHYs internal counters.

Changes in v3:

- fixed the allocation of priv->stats in bcm7xxx

Changes in v2:

- fixed modular build reported by kbuild

- constify array of stats

Florian Fainelli (2):
  net: phy: broadcom: Add support code for reading PHY counters
  net: phy: bcm7xxx: Plug in support for reading PHY error counters

 drivers/net/phy/bcm-phy-lib.c | 70 +++++++++++++++++++++++++++++++++++++++++++
 drivers/net/phy/bcm-phy-lib.h |  5 ++++
 drivers/net/phy/bcm7xxx.c     | 35 ++++++++++++++++++++++
 include/linux/brcmphy.h       |  3 ++
 4 files changed, 113 insertions(+)

-- 
2.9.3
```
