Revert "net: ethernet: stmicro: stmmac: Get the ethernet mac address at stmmac_open"

This reverts commit ea92092755.

After supporting uboot write address to dtb, now we can get the address
during probe.

Change-Id: I38798113361432c4c29b4f3bbd73755c73d2d172
Signed-off-by: David Wu <david.wu@rock-chips.com>
This commit is contained in:
David Wu
2020-12-01 18:28:08 +08:00
committed by Tao Huang
parent 2a573ecd71
commit 2334efce3d

View File

@@ -2627,8 +2627,6 @@ 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__);
@@ -4336,6 +4334,8 @@ 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);