Message ID | 20240417205048.3542839-4-paweldembicki@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 12af94b2955fa74548001624839aadce505fe957 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | net: dsa: vsc73xx: convert to PHYLINK and do some cleanup | expand |
diff --git a/drivers/net/dsa/vitesse-vsc73xx-core.c b/drivers/net/dsa/vitesse-vsc73xx-core.c index 3f8edac9aa5c..09e80aac43e7 100644 --- a/drivers/net/dsa/vitesse-vsc73xx-core.c +++ b/drivers/net/dsa/vitesse-vsc73xx-core.c @@ -810,7 +810,7 @@ static void vsc73xx_mac_link_up(struct phylink_config *config, else val = VSC73XX_MAC_CFG_TX_IPG_100_10M; - if (interface == PHY_INTERFACE_MODE_RGMII) + if (phy_interface_mode_is_rgmii(interface)) val |= VSC73XX_MAC_CFG_CLK_SEL_1000M; else val |= VSC73XX_MAC_CFG_CLK_SEL_EXT;