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

net: pcs-lynx: add support for 10GBASER

Add support in the Lynx PCS module for the 10GBASE-R mode which is only
used to get the link state, since it offers a single fixed speed.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Ioana Ciornei and committed by
David S. Miller
e7e95c90 e2f9a8fe

+6
+6
drivers/net/pcs/pcs-lynx.c
··· 93 93 case PHY_INTERFACE_MODE_USXGMII: 94 94 lynx_pcs_get_state_usxgmii(lynx->mdio, state); 95 95 break; 96 + case PHY_INTERFACE_MODE_10GBASER: 97 + phylink_mii_c45_pcs_get_state(lynx->mdio, state); 98 + break; 96 99 default: 97 100 break; 98 101 } ··· 175 172 break; 176 173 case PHY_INTERFACE_MODE_USXGMII: 177 174 return lynx_pcs_config_usxgmii(lynx->mdio, mode, advertising); 175 + case PHY_INTERFACE_MODE_10GBASER: 176 + /* Nothing to do here for 10GBASER */ 177 + break; 178 178 default: 179 179 return -EOPNOTSUPP; 180 180 }