net: asix: init ASIX AX88772B MAC from EEPROM

The device comes up with a MAC address of all zeros. We need to read the
initial device MAC from EEPROM so it can be set properly later.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Lucas Stach
2013-01-16 04:24:06 +00:00
committed by David S. Miller
parent a16af2ffa2
commit 5620df65d8
2 changed files with 30 additions and 3 deletions

View File

@@ -167,6 +167,9 @@ struct asix_data {
u8 res;
};
/* ASIX specific flags */
#define FLAG_EEPROM_MAC (1UL << 0) /* init device MAC from eeprom */
int asix_read_cmd(struct usbnet *dev, u8 cmd, u16 value, u16 index,
u16 size, void *data);