LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* natsemi: Fix detection of vanilla natsemi cards
@ 2007-02-25 15:37 Mark Brown
  2007-02-27  9:31 ` Jeff Garzik
  0 siblings, 1 reply; 5+ messages in thread
From: Mark Brown @ 2007-02-25 15:37 UTC (permalink / raw)
  To: Andrew Morton, Tim Hockin, Jeff Garzik; +Cc: Adrian Bunk, netdev, linux-kernel

Bob Tracy <rct@gherkin.frus.com> 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
ta 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.

Signed-Off-By: Mark Brown <broonie@sirena.org.uk>

--- linux.orig/drivers/net/natsemi.c	2007-02-23 11:13:03.000000000 +0000
+++ linux/drivers/net/natsemi.c	2007-02-23 11:12:00.000000000 +0000
@@ -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);

-- 
"You grabbed my hand and we fell into it, like a daydream - or a fever."

^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <20070223020920.b9528e0e.akpm@linux-foundation.org>]

end of thread, other threads:[~2007-02-27  9:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-25 15:37 natsemi: Fix detection of vanilla natsemi cards Mark Brown
2007-02-27  9:31 ` Jeff Garzik
     [not found] <20070223020920.b9528e0e.akpm@linux-foundation.org>
2007-02-23 11:32 ` Mark Brown
2007-02-23 13:47   ` Bob Tracy
2007-02-23 14:26     ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).