diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index 7e102ecd9165..b6c08b79457b 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c @@ -2633,6 +2633,8 @@ static int stmmac_open(struct net_device *dev) goto init_error; } + stmmac_check_ether_addr(priv); + ret = stmmac_hw_setup(dev, true); if (ret < 0) { netdev_err(priv->dev, "%s: Hw setup failed\n", __func__); @@ -4319,8 +4321,6 @@ int stmmac_dvr_probe(struct device *device, if (ret) goto error_hw_init; - stmmac_check_ether_addr(priv); - /* Configure real RX and TX queues */ netif_set_real_num_rx_queues(ndev, priv->plat->rx_queues_to_use); netif_set_real_num_tx_queues(ndev, priv->plat->tx_queues_to_use);