net: ethernet: ti: am65-cpsw: Fix RGMII configuration at SPEED_10
[platform/kernel/linux-starfive.git] / drivers / net / ethernet / ti / am65-cpsw-nuss.c
index d04a239..b3b0ba8 100644 (file)
@@ -1454,7 +1454,7 @@ static void am65_cpsw_nuss_mac_link_up(struct phylink_config *config, struct phy
 
        if (speed == SPEED_1000)
                mac_control |= CPSW_SL_CTL_GIG;
-       if (speed == SPEED_10 && interface == PHY_INTERFACE_MODE_RGMII)
+       if (speed == SPEED_10 && phy_interface_mode_is_rgmii(interface))
                /* Can be used with in band mode only */
                mac_control |= CPSW_SL_CTL_EXT_EN;
        if (speed == SPEED_100 && interface == PHY_INTERFACE_MODE_RMII)