Skip to content

RFC Microsemi PHY cable

Raju Lakkaraju netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v0 RFC Latest2 patches 1 replyIn review

Patches in v0 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net: phy: mscc: Add PHY Netlink Interface along with Cable Diagnostics commanddrivers/net/phy/Kconfig drivers/net/phy/Makefile drivers/net/phy/phy.c +3 more+386 -00 replies
2/2net: phy: mscc: Add PHY driver for Cable Diagnostics commanddrivers/net/phy/mscc.c+128 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v0 yet.

Read the v0 thread

Cover letter [RFC, net-next v0 0/2] Microsemi PHY cable

This series of patches add the Microsemi PHY cable diagnostics command with PHY Netlink Interface.

1. phy_netlink.c and phy_netlink.h files add for PHY diagnostics features implementation through PHY Netlink interface.
2. phy.c contain the generic functions of "PHY diagnostics". This layer independ of the communication layer (i.e. Netlink or IOCTL etc)
3. mscc.c contain the 4-pair ethernet PHY driver along with PHY diagnostics feature.

Patches test on VSC8531 Microsemi PHY - Beaglebone Black target

Test results:
------------

# nl-app eth0 request
GroupID = 2
GroupName = phy_monitor

Cable Diagnostics Request:
Operation Status : Success
Cable Pairs mask : 0xf
Timeout count : 84
Cable diagnostics results:
Pair A: Correctly terminated pair, Loop Length: 0 m Pair B: Correctly terminated pair, Loop Length: 0 m Pair C: Correctly terminated pair, Loop Length: 0 m Pair D: Correctly terminated pair, Loop Length: 0 m

Application git repository path:
-------------------------------
https://github.com/lakkarajun/bbb_nl_app

Raju Lakkaraju (2):
net: phy: mscc: Add PHY Netlink Interface along with Cable Diagnostics
command
net: phy: mscc: Add PHY driver for Cable Diagnostics command

 drivers/net/phy/Kconfig       |   6 ++
 drivers/net/phy/Makefile      |   1 +
 drivers/net/phy/mscc.c        | 128 ++++++++++++++++++++++++
 drivers/net/phy/phy.c         |  17 ++++
 drivers/net/phy/phy_netlink.c | 226 ++++++++++++++++++++++++++++++++++++++++++
 include/linux/phy.h           |  88 ++++++++++++++++
 include/linux/phy_netlink.h   |  48 +++++++++
 7 files changed, 514 insertions(+)
 create mode 100644 drivers/net/phy/phy_netlink.c
 create mode 100644 include/linux/phy_netlink.h
Signature · 1 line
2.7.4