net: phylink: allow in-band AN for USXGMII
Subsystems (4)
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
@@ -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
Russell King - ARM Linux admin
maintainerQuoted 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.
Signed-off-by Alex Marginean <[email protected]>Signed-off-by Vladimir Oltean <[email protected]>
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
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