summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2020-10-01 21:51:58 +0300
committerTom Rini <trini@konsulko.com>2020-10-01 21:51:58 +0300
commitf352c51f575e13a3117d8d5867cbe59fd6f2bd13 (patch)
tree0bd82a6d33b60dc88bfacc9d4bb2d88b0d9a34e2 /drivers/net
parentb084d8596d3f044a087f1c2ab0bfb38a120276de (diff)
downloadu-boot-f352c51f575e13a3117d8d5867cbe59fd6f2bd13.tar.xz
Revert "net: smc911x: Automatically Update ethaddr with MAC"
Upon further discussion on the mailing list, we should not get in the situation where the generic code path to set ethaddr/etc correctly does not work. Revert this until someone can further debug the smc911x driver regarding this issue. This reverts commit 387cbf096e443705fa66776027273ed257ec6ca3. Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/smc911x.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/smc911x.c b/drivers/net/smc911x.c
index 1fa3667b77..09372d7f6b 100644
--- a/drivers/net/smc911x.c
+++ b/drivers/net/smc911x.c
@@ -6,7 +6,6 @@
*/
#include <common.h>
-#include <env.h>
#include <command.h>
#include <malloc.h>
#include <net.h>
@@ -186,8 +185,6 @@ static void smc911x_handle_mac_address(struct smc911x_priv *priv)
smc911x_set_mac_csr(priv, ADDRH, addrh);
printf(DRIVERNAME ": MAC %pM\n", m);
- if (!env_get("ethaddr"))
- env_set("ethaddr", (const char *)m);
}
static bool smc911x_read_mac_address(struct smc911x_priv *priv)