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

Joe Hershberger joe.hershberger at gmail.com
Wed Oct 28 21:12:43 CET 2015


Hi Bin,

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>

Acked-by: Joe Hershberger <joe.hershberger at ni.com>


More information about the U-Boot mailing list