Skip to content

Commit 152151d

Browse files
Dave JonesJeff Garzik
authored andcommitted
8139too: Force usage of PIO on OQO2
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 <davej@redhat.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
1 parent eb58134 commit 152151d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/net/8139too.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -949,6 +949,14 @@ static int __devinit rtl8139_init_one (struct pci_dev *pdev,
949949
"Use the \"8139cp\" driver for improved performance and stability.\n");
950950
}
951951

952+
if (pdev->vendor == PCI_VENDOR_ID_REALTEK &&
953+
pdev->device == PCI_DEVICE_ID_REALTEK_8139 &&
954+
pdev->subsystem_vendor == PCI_VENDOR_ID_ATHEROS &&
955+
pdev->subsystem_device == PCI_DEVICE_ID_REALTEK_8139) {
956+
printk(KERN_INFO "8139too: OQO Model 2 detected. Forcing PIO\n");
957+
use_io = 1;
958+
}
959+
952960
i = rtl8139_init_board (pdev, &dev);
953961
if (i < 0)
954962
return i;

0 commit comments

Comments
 (0)