net: phylink: allow in-band AN for USXGMII
authorAlex Marginean <alexandru.marginean@nxp.com>
Sat, 18 Jan 2020 12:19:15 +0000 (14:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Jan 2020 09:27:04 +0000 (10:27 +0100)
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.

Signed-off-by: Alex Marginean <alexandru.marginean@nxp.com>
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phylink.c

index 43d6985..70b9a14 100644 (file)
@@ -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);