net: phylink: allow in-band AN for USXGMII
Subsystems (4)
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
@@ -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
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
Signed-off-by Alex Marginean <[email protected]>Signed-off-by Vladimir Oltean <[email protected]>---
Changes in v2:
- copied netdev list
- Reordered USXGMII with 10GKR
Applied, thanks.