net: smc911x: Keep MAC programmed
authorMarek Vasut <marex@denx.de>
Sat, 11 Oct 2014 16:42:58 +0000 (18:42 +0200)
committerTom Rini <trini@ti.com>
Fri, 7 Nov 2014 21:27:04 +0000 (16:27 -0500)
Make sure to keep the MAC address programmed in the SMC911x ADDRH
and ADDRL registers. Linux can read those registers to determine
the MAC address on EEPROM-less configurations.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Joe Hershberger <joe.hershberger@ni.com>
Cc: Tom Rini <trini@ti.com>
drivers/net/smc911x.c

index b097c1a56fb157804e7cafdd54eaa8ec04fd73cc..5959672370efb063d9e23c80bb038fd630224b85 100644 (file)
@@ -187,6 +187,7 @@ static int smc911x_send(struct eth_device *dev, void *packet, int length)
 static void smc911x_halt(struct eth_device *dev)
 {
        smc911x_reset(dev);
+       smc911x_handle_mac_address(dev);
 }
 
 static int smc911x_rx(struct eth_device *dev)