Commit 663f87fa authored by Daniele Venzano's avatar Daniele Venzano Committed by Jeff Garzik

[netdrvr sis900] fix ISA bridge detection

parent 2e7d2212
...@@ -260,9 +260,13 @@ static int __devinit sis630e_get_mac_addr(struct pci_dev * pci_dev, struct net_d ...@@ -260,9 +260,13 @@ static int __devinit sis630e_get_mac_addr(struct pci_dev * pci_dev, struct net_d
u8 reg; u8 reg;
int i; int i;
if ((isa_bridge = pci_find_device(0x1039, 0x0008, isa_bridge)) == NULL) { isa_bridge = pci_find_device(PCI_VENDOR_ID_SI, 0x0008, isa_bridge);
printk("%s: Can not find ISA bridge\n", net_dev->name); if (!isa_bridge) {
return 0; isa_bridge = pci_find_device(PCI_VENDOR_ID_SI, 0x0018, isa_bridge);
if (!isa_bridge) {
printk("%s: Can not find ISA bridge\n", net_dev->name);
return 0;
}
} }
pci_read_config_byte(isa_bridge, 0x48, &reg); pci_read_config_byte(isa_bridge, 0x48, &reg);
pci_write_config_byte(isa_bridge, 0x48, reg | 0x40); pci_write_config_byte(isa_bridge, 0x48, reg | 0x40);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment