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

Joe Hershberger joe.hershberger at gmail.com
Thu Oct 29 20:34:35 CET 2015


On Wed, Oct 7, 2015 at 11:45 PM, Bin Meng <bmeng.cn at gmail.com> 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, or even random). Fix this by
> clearing platdata->enetaddr when removing an Ethernet device.
>
> Signed-off-by: Bin Meng <bmeng.cn at gmail.com>

Applied to u-boot-net/master, thanks!
-Joe


More information about the U-Boot mailing list