Message ID | 20240301221641.159542-4-paweldembicki@gmail.com (mailing list archive) |
---|---|
State | Changes Requested |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | net: dsa: vsc73xx: Make vsc73xx usable | expand |
On Fri, Mar 01, 2024 at 11:16:25PM +0100, Pawel Dembicki wrote: > It's preparation for future use. At this moment, the RGMII port is used > only for a connection to the MAC interface, but in the future, someone > could connect a PHY to it. Using the "phy_interface_mode_is_rgmii" macro > allows for the proper recognition of all RGMII modes. > > Suggested-by: Russell King <linux@armlinux.org.uk> Please change this to: Suggested-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Also: Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Thanks!
diff --git a/drivers/net/dsa/vitesse-vsc73xx-core.c b/drivers/net/dsa/vitesse-vsc73xx-core.c index cb2e7e256279..8ed8fc997d6d 100644 --- a/drivers/net/dsa/vitesse-vsc73xx-core.c +++ b/drivers/net/dsa/vitesse-vsc73xx-core.c @@ -807,7 +807,7 @@ static void vsc73xx_phylink_mac_link_up(struct dsa_switch *ds, int port, 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;