Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: phylink: allow in-band AN for USXGMII

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>

authored by

Alex Marginean and committed by
David S. Miller
04e22463 3e41d04e

+1
+1
drivers/net/phy/phylink.c
··· 298 298 phylink_set(pl->supported, 2500baseX_Full); 299 299 break; 300 300 301 + case PHY_INTERFACE_MODE_USXGMII: 301 302 case PHY_INTERFACE_MODE_10GKR: 302 303 case PHY_INTERFACE_MODE_10GBASER: 303 304 phylink_set(pl->supported, 10baseT_Half);