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

Configure Feed

Select the types of activity you want to include in your feed.

net: enetc: allow phy-mode = "1000base-x"

The driver code proper is handled by the lynx_pcs. The enetc just needs
to populate phylink's supported_interfaces array, and return true for
this phy-mode in enetc_port_has_pcs(), such that it creates an internal
MDIO bus through which the Lynx PCS registers are accessed.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://lore.kernel.org/r/20240103113445.3892971-1-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Vladimir Oltean and committed by
Jakub Kicinski
14d0681b fe1eb24b

+3
+3
drivers/net/ethernet/freescale/enetc/enetc_pf.c
··· 920 920 static bool enetc_port_has_pcs(struct enetc_pf *pf) 921 921 { 922 922 return (pf->if_mode == PHY_INTERFACE_MODE_SGMII || 923 + pf->if_mode == PHY_INTERFACE_MODE_1000BASEX || 923 924 pf->if_mode == PHY_INTERFACE_MODE_2500BASEX || 924 925 pf->if_mode == PHY_INTERFACE_MODE_USXGMII); 925 926 } ··· 1116 1115 __set_bit(PHY_INTERFACE_MODE_INTERNAL, 1117 1116 pf->phylink_config.supported_interfaces); 1118 1117 __set_bit(PHY_INTERFACE_MODE_SGMII, 1118 + pf->phylink_config.supported_interfaces); 1119 + __set_bit(PHY_INTERFACE_MODE_1000BASEX, 1119 1120 pf->phylink_config.supported_interfaces); 1120 1121 __set_bit(PHY_INTERFACE_MODE_2500BASEX, 1121 1122 pf->phylink_config.supported_interfaces);