]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/8139too.c
8139too: Force usage of PIO on OQO2
[linux-2.6-omap-h63xx.git] / drivers / net / 8139too.c
index f172b5d822d7b4a2f0f81affffb0e96b9751b1e8..f62ac64e98fed4b7ff92d737cb0115a54ef562c6 100644 (file)
@@ -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;