summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorChoong Yong Liang <yong.liang.choong@linux.intel.com>2025-02-27 15:15:20 +0300
committerJakub Kicinski <kuba@kernel.org>2025-03-06 06:02:47 +0300
commite654cfc718d451bdf6c1554efc945171239f03f5 (patch)
tree3b021d793cf15a65230a6d77f546f64e706b8c4f /include/linux
parent7e2f7e25f6ffc229fd5be0488e1d8aac7bdd80e8 (diff)
downloadlinux-e654cfc718d451bdf6c1554efc945171239f03f5.tar.xz
net: stmmac: configure SerDes on mac_finish
SerDes will configure according to the provided interface mode after finish a major reconfiguration of the interface mode. Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Signed-off-by: Choong Yong Liang <yong.liang.choong@linux.intel.com> Link: https://patch.msgid.link/20250227121522.1802832-5-yong.liang.choong@linux.intel.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/stmmac.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/stmmac.h b/include/linux/stmmac.h
index cd0d1383df87..b6f03ab12595 100644
--- a/include/linux/stmmac.h
+++ b/include/linux/stmmac.h
@@ -239,6 +239,10 @@ struct plat_stmmacenet_data {
int (*serdes_powerup)(struct net_device *ndev, void *priv);
void (*serdes_powerdown)(struct net_device *ndev, void *priv);
void (*speed_mode_2500)(struct net_device *ndev, void *priv);
+ int (*mac_finish)(struct net_device *ndev,
+ void *priv,
+ unsigned int mode,
+ phy_interface_t interface);
void (*ptp_clk_freq_config)(struct stmmac_priv *priv);
int (*init)(struct platform_device *pdev, void *priv);
void (*exit)(struct platform_device *pdev, void *priv);