[PATCH net-next 0/4] net: phy: broadcom: cable tester support

From: Michael Walle
Date: Wed May 13 2020 - 12:35:35 EST


Add cable tester support for the Broadcom PHYs. Support for it was
developed on a BCM54140 Quad PHY which RDB register access.

If there is a link partner the results are not as good as with an open
cable. I guess we could retry if the measurement until all pairs had at
least one valid result.

changes since v1:
- added Reviewed-by: tags
- removed "div by 2" for cross shorts, just mention it in the commit
message. The results are inconclusive if the tests are repeated. So
just report the length as is for now.
- fixed typo in commit message

Michael Walle (4):
net: phy: broadcom: add exp register access methods without buslock
net: phy: broadcom: add bcm_phy_modify_exp()
net: phy: broadcom: add cable test support
net: phy: bcm54140: add cable diagnostics support

drivers/net/phy/bcm-phy-lib.c | 259 +++++++++++++++++++++++++++++++++-
drivers/net/phy/bcm-phy-lib.h | 10 ++
drivers/net/phy/bcm54140.c | 3 +
include/linux/brcmphy.h | 52 +++++++
4 files changed, 317 insertions(+), 7 deletions(-)

--
2.20.1