Skip to content

Commit

Permalink
8139too: Force usage of PIO on OQO2
Browse files Browse the repository at this point in the history
The OQO model 2 has an RTL8139 from Atheros that doesn't like MMIO.
It fails on modprobe, with a 'PCI Bus error' message.

Force it to always use polled IO.

Signed-off-by: Dave Jones <[email protected]>
Signed-off-by: Jeff Garzik <[email protected]>
  • Loading branch information
Dave Jones authored and Jeff Garzik committed Jul 22, 2008
1 parent eb58134 commit 152151d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions drivers/net/8139too.c
Original file line number Diff line number Diff line change
Expand Up @@ -949,6 +949,14 @@ static int __devinit rtl8139_init_one (struct pci_dev *pdev,
"Use the \"8139cp\" driver for improved performance and stability.\n");
}

if (pdev->vendor == PCI_VENDOR_ID_REALTEK &&
pdev->device == PCI_DEVICE_ID_REALTEK_8139 &&
pdev->subsystem_vendor == PCI_VENDOR_ID_ATHEROS &&
pdev->subsystem_device == PCI_DEVICE_ID_REALTEK_8139) {
printk(KERN_INFO "8139too: OQO Model 2 detected. Forcing PIO\n");
use_io = 1;
}

i = rtl8139_init_board (pdev, &dev);
if (i < 0)
return i;
Expand Down

0 comments on commit 152151d

Please sign in to comment.