Skip to content

Allow isolating PHY devices

Maxime Chevallier linux-arm-kernel lkml netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 25 repliesIn review
  2. v17 patches 11 repliesSuperseded

Changes in v2 from the cover letter

- Removed the loopback mode that was included in the first iteration
- Added phy_shutdown, to make sure we de-isolate the PHY when rebooting
- Changes the "PHY_NO_ISOLATE" flag to a phy driver ops. Testing showed that some PHYs may or may not support isolation based on the interface that's being used.
- Added isolation support reporting for the Marvell 88e1111 PHY.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9net: phy: allow isolating PHY devicesdrivers/net/phy/phy_device.c include/linux/phy.h+74 -60 replies
2/9net: phy: Introduce phy_shutdown for device quiescence.drivers/net/phy/phy_device.c+12 -00 replies
3/9net: phy: Allow PHY drivers to report isolation supportdrivers/net/phy/phy_device.c include/linux/phy.h+30 -04 replies
4/9net: phy: lxt: Mark LXT973 PHYs as having a broken isolate modedrivers/net/phy/lxt.c+2 -00 replies
5/9net: phy: marvell10g: 88x3310 and 88x3340 don't support isolate modedrivers/net/phy/marvell10g.c+2 -00 replies
6/9net: phy: marvell: mv88e1111 doesn't support isolate in SGMII modedrivers/net/phy/marvell.c+9 -00 replies
7/9net: phy: introduce ethtool_phy_ops to get and set phy configurationdrivers/net/phy/phy.c drivers/net/phy/phy_device.c include/linux/ethtool.h +1 more+73 -016 replies
8/9net: ethtool: phy: allow reporting and setting the phy isolate statusDocumentation/networking/ethtool-netlink.rst include/uapi/linux/ethtool_netlink.h net/ethtool/netlink.c +2 more+80 -00 replies
9/9netlink: specs: introduce phy-set command along with configurable attributesDocumentation/netlink/specs/ethtool.yaml+15 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH net-next v2 0/9] Allow isolating PHY devices

Hello,

This is the V2 of a series to add isolation support for PHY devices.

As a remainder, this mode allows a PHY to set its MII lines in high-impedance mode to avoid interferences on this bus.

So far, I've identified that :

- Marvell 88e1512 isolation works fine
- LXT973 claims to support isolation, but it's actually broken
- Marvell 88x3310 doesn't support isolation, by design
- Marvell 88e1111 claims to support isolation in GMII, RGMII, TBI (untested) but doesn't in SGMII (tested).

Changes in V2 :

- Removed the loopback mode that was included in the first iteration
- Added phy_shutdown, to make sure we de-isolate the PHY when rebooting
- Changes the "PHY_NO_ISOLATE" flag to a phy driver ops. Testing showed that some PHYs may or may not support isolation based on the interface that's being used.
- Added isolation support reporting for the Marvell 88e1111 PHY.

V1 : https://lore.kernel.org/netdev/[email protected]/

Maxime Chevallier (9):
net: phy: allow isolating PHY devices
net: phy: Introduce phy_shutdown for device quiescence.
net: phy: Allow PHY drivers to report isolation support
net: phy: lxt: Mark LXT973 PHYs as having a broken isolate mode
net: phy: marvell10g: 88x3310 and 88x3340 don't support isolate mode
net: phy: marvell: mv88e1111 doesn't support isolate in SGMII mode
net: phy: introduce ethtool_phy_ops to get and set phy configuration
net: ethtool: phy: allow reporting and setting the phy isolate status
netlink: specs: introduce phy-set command along with configurable
attributes

 Documentation/netlink/specs/ethtool.yaml     |  15 +++
 Documentation/networking/ethtool-netlink.rst |   1 +
 drivers/net/phy/lxt.c                        |   2 +
 drivers/net/phy/marvell.c                    |   9 ++
 drivers/net/phy/marvell10g.c                 |   2 +
 drivers/net/phy/phy.c                        |  44 ++++++++
 drivers/net/phy/phy_device.c                 | 101 +++++++++++++++++--
 include/linux/ethtool.h                      |   8 ++
 include/linux/phy.h                          |  42 ++++++++
 include/uapi/linux/ethtool_netlink.h         |   2 +
 net/ethtool/netlink.c                        |   8 ++
 net/ethtool/netlink.h                        |   1 +
 net/ethtool/phy.c                            |  68 +++++++++++++
 13 files changed, 297 insertions(+), 6 deletions(-)
Signature · 1 line
2.46.1