From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Fri, 2 Sep 2011 07:55:05 +0200 Subject: [U-Boot] [PATCH] net: fix warning not initializing MAC address Message-ID: <1314942905-14117-1-git-send-email-hs@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de following warning message blobs up, when initializing for example DaVinci EMAC: Net: Ethernet PHY: KSZ8873 @ 0x02 DaVinci-EMACWarning: failed to set MAC address Introduced from commit commit 7616e7850804c7c69e0a22c179dfcba9e8f3f587 Author: Simon Glass Date: Mon Jun 13 16:13:10 2011 -0700 Add Ethernet hardware MAC address framework to usbnet Built-in Ethernet adapters support setting the mac address by means of a ethaddr environment variable for each interface (ethaddr, eth1addr, eth2addr). This adds similar support to the USB network side, using the names usbethaddr, usbeth1addr, etc. They are kept separate since we don't want a USB device taking the MAC address of a built-in device or vice versa. Signed-off-by: Simon Glass Tested-by: Eric B?nard Fix this! Signed-off-by: Heiko Schocher cc: Simon Glass --- net/eth.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net/eth.c b/net/eth.c index a34fe59..2caaf60 100644 --- a/net/eth.c +++ b/net/eth.c @@ -296,7 +296,7 @@ int eth_initialize(bd_t *bis) if (strchr(dev->name, ' ')) puts("\nWarning: eth device name has a space!\n"); - if (eth_write_hwaddr(dev, NULL, eth_number)) + if (eth_write_hwaddr(dev, "eth", eth_number)) puts("Warning: failed to set MAC address\n"); eth_number++; -- 1.7.6