From f566c9949fbdce2e09a900c5343ca9986e5ba360 Mon Sep 17 00:00:00 2001 From: Joe Hershberger Date: Tue, 24 Mar 2015 02:41:49 -0500 Subject: net: Update hardware MAC address if it changes in env When the ethaddr changes in the env, the hardware should also be updated so that MAC filtering will work properly without resetting U-Boot. Also remove the manual calls to set the hwaddr that was included in a few drivers as a result of the framework not doing it. Reported-by: Michal Simek Signed-off-by: Joe Hershberger Tested-by: Michal Simek --- drivers/net/bcm-sf2-eth.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'drivers/net/bcm-sf2-eth.c') diff --git a/drivers/net/bcm-sf2-eth.c b/drivers/net/bcm-sf2-eth.c index 51d5146363..eab4c1f900 100644 --- a/drivers/net/bcm-sf2-eth.c +++ b/drivers/net/bcm-sf2-eth.c @@ -154,12 +154,6 @@ static int bcm_sf2_eth_open(struct eth_device *dev, bd_t *bt) debug("Enabling BCM SF2 Ethernet.\n"); - /* Set MAC address from env */ - if (bcm_sf2_eth_write_hwaddr(dev) != 0) { - error("%s: MAC set error when opening !\n", __func__); - return -1; - } - eth->enable_mac(); /* enable tx and rx DMA */ -- cgit v1.2.1