u-boot/net
Bin Meng a16edabe7f net: eth: Clear MAC address in eth_pre_remove()
platdata->enetaddr was assigned to a value in dev_probe() last time.
If we don't clear it, for dev_probe() at the second time, dm eth
will end up treating it as a MAC address from ROM no matter where it
came from originally (maybe env, ROM, or even random). Fix this by
clearing platdata->enetaddr when removing an Ethernet device.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
2015-10-29 14:05:51 -05:00
..
arp.c
arp.h
bootp.c
bootp.h
cdp.c
cdp.h
checksum.c
dns.c
dns.h
eth.c net: eth: Clear MAC address in eth_pre_remove() 2015-10-29 14:05:51 -05:00
Kconfig
link_local.c
link_local.h
Makefile
net_rand.h
net.c
nfs.c
nfs.h
ping.c
ping.h
rarp.c
rarp.h
sntp.c
sntp.h
tftp.c