Skip to contentSkip to conversation

net: phylink: allow in-band AN for USXGMII

PATCH Superseded Vladimir Oltean 2 participants 2 messages Jan 16, 2020 – Jan 18, 2020

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: phylink: allow in-band AN for USXGMII

From: Alex Marginean <[email protected]>

USXGMII supports passing link information in-band between PHY and MAC PCS, add it to the list of protocols that support in-band AN mode.

Being a MAC-PHY protocol that can auto-negotiate link speeds up to 10 Gbps, we populate the initial supported mask with the entire spectrum of link modes up to 10G that PHYLINK supports, and we let the driver reduce that mask in its .phylink_validate method.

---
 drivers/net/phy/phylink.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/phy/phylink.c +1 -0
index efabbfa4a6d3..f40d92ec32f8 100644
@@ -299,6 +299,7 @@ static int phylink_parse_mode(struct phylink *pl, struct fwnode_handle *fwnode)
 			break;
 
 		case PHY_INTERFACE_MODE_10GKR:
+		case PHY_INTERFACE_MODE_USXGMII:
 		case PHY_INTERFACE_MODE_10GBASER:
 			phylink_set(pl->supported, 10baseT_Half);
 			phylink_set(pl->supported, 10baseT_Full);
Signature · 1 line
2.17.1
#1 lore raw
Quoted 5 lines · Vladimir Oltean

From: Alex Marginean <[email protected]>

USXGMII supports passing link information in-band between PHY and MAC PCS, add it to the list of protocols that support in-band AN mode.

Quoted 7 lines

Being a MAC-PHY protocol that can auto-negotiate link speeds up to 10 Gbps, we populate the initial supported mask with the entire spectrum of link modes up to 10G that PHYLINK supports, and we let the driver reduce that mask in its .phylink_validate method.

Please copy your patches to the netdev mailing list.

Quoted 9 lines
---
 drivers/net/phy/phylink.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/phy/phylink.c +0 -0
index efabbfa4a6d3..f40d92ec32f8 100644

drivers/net/phy/phylink.c static int phylink_parse_mode(struct phylink *pl, struct fwnode_handle *fwnode) · line 303

Quoted 5 lines
drivers/net/phy/phylink.c +1 -0
@@ -299,6 +299,7 @@ static int phylink_parse_mode(struct phylink *pl, struct fwnode_handle *fwnode)
 			break;
 
 		case PHY_INTERFACE_MODE_10GKR:
+		case PHY_INTERFACE_MODE_USXGMII:
 		case PHY_INTERFACE_MODE_10GBASER:

Please also move USXGMII before 10GKR.

Thanks.

Signature · 3 lines
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up
According to speedtest.net: 11.9Mbps down 500kbps up