Re: [U-Boot] [PATCH v3 1/3] net: eth: Clear MAC address in eth_pre_remove()

2015-10-29 Thread Joe Hershberger
On Wed, Oct 7, 2015 at 11:45 PM, Bin Meng wrote: > 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,

Re: [U-Boot] [PATCH v3 1/3] net: eth: Clear MAC address in eth_pre_remove()

2015-10-28 Thread Joe Hershberger
Hi Bin, On Wed, Oct 7, 2015 at 11:45 PM, Bin Meng wrote: > 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 e

[U-Boot] [PATCH v3 1/3] net: eth: Clear MAC address in eth_pre_remove()

2015-10-07 Thread Bin Meng
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 w