]> git.sur5r.net Git - u-boot/commit
net: asix: add read_mac function
authorLucas Stach <dev@lynxeye.de>
Wed, 22 Aug 2012 11:05:00 +0000 (11:05 +0000)
committerJoe Hershberger <joe.hershberger@ni.com>
Wed, 26 Sep 2012 17:36:31 +0000 (12:36 -0500)
commit02c8d8cc6e52b29deabab179e365281131316cf1
tree25e09f51d889e3c7a4ddbb846dd67217414776ad
parent58f8fab8a444424e9f0dcb8f6218350a736b5f62
net: asix: add read_mac function

Initial device MAC should be read while getting info about the
device, so it's wrong to only read it in asix_init().

Add a dedicated function to read the initial MAC, which is also
able to handle devices that have their initial MAC stored in
EEPROM. Call this function inasix_eth_get_info().

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Reviewed-by: Marek Vasut <marex@denx.de>
Acked-by: Marek Vasut <marex@denx.de>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/usb/eth/asix.c