Add Ethernet hardware MAC address framework to usbnet
authorSimon Glass <sjg@chromium.org>
Mon, 13 Jun 2011 23:13:10 +0000 (16:13 -0700)
committerRemy Bohmer <linux@bohmer.net>
Mon, 8 Aug 2011 19:05:23 +0000 (21:05 +0200)
commit7616e7850804c7c69e0a22c179dfcba9e8f3f587
tree9626807ab58412177023ab6ad472448b932d412c
parent291391bed566a569a80b50c924a7c43747abc1b5
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 <sjg@chromium.org>
Tested-by: Eric BĂ©nard <eric@eukrea.com>
board/davinci/common/misc.c
drivers/net/designware.c
drivers/usb/eth/usb_ether.c
include/net.h
net/eth.c