natsemi: Fix detection of vanilla natsemi cards
Subsystems (2)
Bob Tracy <[email protected]> reported that the addition of support for Aculab E1/T1 cPCI carrier cards broke detection of vanilla natsemi cards. This patch fixes that: the problem is that the driver-specific data in the PCI device table is an index into a second table and this had not been updated for the vanilla cards.
This patch fixes the problem minimally.
drivers/net/natsemi.c +1 -1
@@ -260,7 +260,7 @@static const struct pci_device_id natsemi_pci_tbl[]__devinitdata = { {PCI_VENDOR_ID_NS ,0x0020 ,0x12d9 ,0x000c ,0 ,0 ,0 }, - { PCI_VENDOR_ID_NS, 0x0020, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 } + {PCI_VENDOR_ID_NS ,0x0020 ,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 ,1 }, { }/* terminate list */ };MODULE_DEVICE_TABLE (pci, natsemi_pci_tbl);
Signature · 1 line
"You grabbed my hand and we fell into it, like a daydream - or a fever."
Quoted 9 lines · Mark Brown
(Re: vanilla natsemi card detection problem)
This patch fixes the problem minimally.Signed-off-by Mark Brown <[email protected]>
drivers/net/natsemi.c line 266
Quoted 8 lines
drivers/net/natsemi.c +1
-1@@ -260,7 +260,7 @@static const struct pci_device_id natsemi_pci_tbl[]__devinitdata = { {PCI_VENDOR_ID_NS ,0x0020 ,0x12d9 ,0x000c ,0 ,0 ,0 }, - { PCI_VENDOR_ID_NS, 0x0020, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 } + {PCI_VENDOR_ID_NS ,0x0020 ,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 ,1 }, { }/* terminate list */ };MODULE_DEVICE_TABLE (pci, natsemi_pci_tbl);
ACK except for a missing comma at the end of the line being replaced, which prevents the patch from applying cleanly. Otherwise, this fixes the problem I was having. Thanks!
Signature · 4 lines
----------------------------------------------------------------------- Bob Tracy WTO + WIPO = DMCA? http://www.anti-dmca.org [email protected] -----------------------------------------------------------------------
Quoted 3 lines · Bob Tracy
ACK except for a missing comma at the end of the line being replaced, which prevents the patch from applying cleanly. Otherwise, this fixes the problem I was having. Thanks!
Aargh.
drivers/net/natsemi.c +1 -1
@@ -260,7 +260,7 @@static const struct pci_device_id natsemi_pci_tbl[]__devinitdata = { {PCI_VENDOR_ID_NS ,0x0020 ,0x12d9 ,0x000c ,0 ,0 ,0 }, - {PCI_VENDOR_ID_NS ,0x0020 ,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 ,0 }, + {PCI_VENDOR_ID_NS ,0x0020 ,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 ,1 }, { }/* terminate list */ };MODULE_DEVICE_TABLE (pci, natsemi_pci_tbl);
Signature · 1 line
"You grabbed my hand and we fell into it, like a daydream - or a fever."