@@ -3953,6 +3953,9 @@ static int __stmmac_open(struct net_device *dev,
if (ret < 0)
return ret;
+ if (priv->plat->open)
+ priv->plat->open(dev, priv->plat->bsp_priv);
+
if ((!priv->hw->xpcs ||
xpcs_get_an_mode(priv->hw->xpcs, mode) != DW_AN_C73)) {
ret = stmmac_init_phy(dev);
@@ -262,6 +262,7 @@ struct plat_stmmacenet_data {
void (*serdes_powerdown)(struct net_device *ndev, void *priv);
void (*speed_mode_2500)(struct net_device *ndev, void *priv);
void (*ptp_clk_freq_config)(struct stmmac_priv *priv);
+ void (*open)(struct net_device *ndev, void *priv);
int (*init)(struct platform_device *pdev, void *priv);
void (*exit)(struct platform_device *pdev, void *priv);
struct mac_device_info *(*setup)(void *priv);