net: dsa: lantiq_gswip: ignore SerDes modes in phylink_mac_config()
Subsystems (3)
RFC PATCH 23/23 net: dsa: lantiq_gswip: ignore SerDes modes in phylink_mac_config()
We can safely ignore SerDes interface modes 1000Base-X, 2500Base-X and SGMII in phylink_mac_config() as they are being taken care of by the PCS.
Signed-off-by Daniel Golle <[email protected]>
--- drivers/net/dsa/lantiq_gswip_common.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/net/dsa/lantiq_gswip_common.c +4 -0
@@ -1476,6 +1476,10 @@ static void gswip_phylink_mac_config(struct phylink_config *config, miicfg |=GSWIP_MII_CFG_LDCLKDIS ;switch (state->interface) { +case PHY_INTERFACE_MODE_SGMII : +case PHY_INTERFACE_MODE_1000BASEX : +case PHY_INTERFACE_MODE_2500BASEX : +return ;case PHY_INTERFACE_MODE_MII :case PHY_INTERFACE_MODE_INTERNAL : miicfg |=GSWIP_MII_CFG_MODE_MIIM ;
Signature · 1 line
2.50.1