[U-Boot] [PATCH] net/eth.c: fix eth_write_hwaddr() to use dev->enetaddr as fall back

Eric Miao eric.miao at linaro.org
Mon Jan 16 08:08:52 CET 2012


On Mon, Jan 16, 2012 at 3:03 PM, Eric Miao <eric.miao at linaro.org> wrote:
> On Sat, Jan 14, 2012 at 3:19 AM, Wolfgang Denk <wd at denx.de> wrote:
>> Dear Eric Miao,
>>
>> In message <1313559224-4627-1-git-send-email-eric.miao at linaro.org> you wrote:
>>> Ignore the return value of eth_getenv_enetaddr_by_index(), and if it
>>> fails, fall back to use dev->enetaddr, which could be filled up by
>>> the ethernet device driver.
>>>
>>> Actually, this is the original behavior, and was later changed by
>>> commit 48506a2cde2458fa1f8c5993afc98e5a4617e1d3.

Checked with git.denx.de/u-boot.git, the original commit hash is

7616e7850804c7c69e0a22c179dfcba9e8f3f587

Please note the behavior modification to eth_write_hwaddr() when
it's excerpted from the original eth_initialize().


More information about the U-Boot mailing list