Tulip: don't initialize SBE xT3E3 WAN ports.
authorKrzysztof Hałasa <khc@pm.waw.pl>
Mon, 2 Aug 2010 23:03:29 +0000 (16:03 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Aug 2010 23:03:29 +0000 (16:03 -0700)
SBE 2T3E3 cards use DECchips 21143 but they need a different driver.
Don't even try to use a normal tulip driver with them.

Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tulip/tulip_core.c
include/linux/pci_ids.h

index 14e5312e906ef2b4a7da121737c0df348a5014e3..3a8d7efa2acf554c6015de56a66b3390fc7503a1 100644 (file)
@@ -1341,6 +1341,12 @@ static int __devinit tulip_init_one (struct pci_dev *pdev,
         if (pdev->subsystem_vendor == PCI_VENDOR_ID_LMC) {
                pr_err(PFX "skipping LMC card\n");
                return -ENODEV;
+       } else if (pdev->subsystem_vendor == PCI_VENDOR_ID_SBE &&
+                  (pdev->subsystem_device == PCI_SUBDEVICE_ID_SBE_T3E3 ||
+                   pdev->subsystem_device == PCI_SUBDEVICE_ID_SBE_2T3E3_P0 ||
+                   pdev->subsystem_device == PCI_SUBDEVICE_ID_SBE_2T3E3_P1)) {
+               pr_err(PFX "skipping SBE T3E3 port\n");
+               return -ENODEV;
        }
 
        /*
index 9ac60dabb6ff7cc4eb478efa5d7cbc343f92e16e..384c2a25db1f0fb849b006ecbd50d585f5b90201 100644 (file)
 #define PCI_DEVICE_ID_SBE_WANXL100     0x0301
 #define PCI_DEVICE_ID_SBE_WANXL200     0x0302
 #define PCI_DEVICE_ID_SBE_WANXL400     0x0104
+#define PCI_SUBDEVICE_ID_SBE_T3E3      0x0009
+#define PCI_SUBDEVICE_ID_SBE_2T3E3_P0  0x0901
+#define PCI_SUBDEVICE_ID_SBE_2T3E3_P1  0x0902
 
 #define PCI_VENDOR_ID_TOSHIBA          0x1179
 #define PCI_DEVICE_ID_TOSHIBA_PICCOLO_1        0x0101