Skip to contentSkip to conversation

net: phylink: allow in-band AN for USXGMII

PATCH Applied Vladimir Oltean 2 participants 2 messages Jan 18, 2020 – Jan 20, 2020

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH v2 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.

---
Changes in v2:
- copied netdev list
- Reordered USXGMII with 10GKR

 drivers/net/phy/phylink.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/phy/phylink.c +1 -0
index efabbfa4a6d3..40da85c70eba 100644
@@ -298,6 +298,7 @@ static int phylink_parse_mode(struct phylink *pl, struct fwnode_handle *fwnode)
 			phylink_set(pl->supported, 2500baseX_Full);
 			break;
 
+		case PHY_INTERFACE_MODE_USXGMII:
 		case PHY_INTERFACE_MODE_10GKR:
 		case PHY_INTERFACE_MODE_10GBASER:
 			phylink_set(pl->supported, 10baseT_Half);
Signature · 1 line
2.17.1
maintainer Applied
#1 lore raw

From: Vladimir Oltean <[email protected]>
Date: Sat, 18 Jan 2020 14:19:15 +0200

Quoted 10 lines

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.

Quoted 6 lines

---
Changes in v2:
- copied netdev list
- Reordered USXGMII with 10GKR

Applied, thanks.