[u-boot] net: ftgmac100: Reset FTGMAC100 before setting MAC
Huy Duong
quochuybk2010 at gmail.com
Tue Nov 21 15:32:15 AEDT 2017
In ftgmac100_initialize(), FTGMAC100 is reset after MACs are set, hence
all MACs set before will be erased. This patch moves ftgmac100_reset() to
before ftgmac100_set_mac_from_env().
Signed-off-by: Huy Duong <qhuyduong at hotmail.com>
---
drivers/net/ftgmac100.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ftgmac100.c b/drivers/net/ftgmac100.c
index 9d5ba98..5779057 100644
--- a/drivers/net/ftgmac100.c
+++ b/drivers/net/ftgmac100.c
@@ -791,11 +791,11 @@ int ftgmac100_initialize(bd_t *bd)
miiphy_register(dev->name, ftgmac100_reg_read, ftgmac100_reg_write);
#endif
+ ftgmac100_reset(dev);
+
/* set the ethernet address */
ftgmac100_set_mac_from_env(dev);
- ftgmac100_reset(dev);
-
card_number++;
}
return card_number;
--
2.7.4
More information about the openbmc
mailing list