mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-13 01:08:50 +00:00
sis190: failure to set the MAC address from EEPROM
Fix from http://bugzilla.kernel.org/show_bug.cgi?id=7747 Signed-off-by: Andrew Morton <akpm@osdl.org> Cc: <sleepy@mike-neko.net> Signed-off-by: Francois Romieu <romieu@fr.zoreil.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
6bf446522b
commit
7939aae0c0
@ -1562,7 +1562,7 @@ static int __devinit sis190_get_mac_addr_from_eeprom(struct pci_dev *pdev,
|
|||||||
for (i = 0; i < MAC_ADDR_LEN / 2; i++) {
|
for (i = 0; i < MAC_ADDR_LEN / 2; i++) {
|
||||||
__le16 w = sis190_read_eeprom(ioaddr, EEPROMMACAddr + i);
|
__le16 w = sis190_read_eeprom(ioaddr, EEPROMMACAddr + i);
|
||||||
|
|
||||||
((u16 *)dev->dev_addr)[0] = le16_to_cpu(w);
|
((u16 *)dev->dev_addr)[i] = le16_to_cpu(w);
|
||||||
}
|
}
|
||||||
|
|
||||||
sis190_set_rgmii(tp, sis190_read_eeprom(ioaddr, EEPROMInfo));
|
sis190_set_rgmii(tp, sis190_read_eeprom(ioaddr, EEPROMInfo));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user