public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] netxen: The driver doesn't work on NX_P3_B1 so cause probe to fail.
@ 2010-03-18  8:24 Eric W. Biederman
  2010-03-18  8:55 ` Amit Salecha
  2010-03-18  9:28 ` Amit Salecha
  0 siblings, 2 replies; 9+ messages in thread
From: Eric W. Biederman @ 2010-03-18  8:24 UTC (permalink / raw)
  To: David Miller; +Cc: netdev, Amit Kumar Salecha


I haven't been able to get link up on a NX_P3_B1 since 2.6.31.  The
driver complains about a firmware hang instead.  When I asked I was
told rev 0x41 was a preproduction rev.  So disable support in the
driver so no one is surprised the code doesn't work.

Signed-off-by: Eric W. Biederman <ebiederm@aristanetworks.com>
---
 drivers/net/netxen/netxen_nic_main.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c
index 08780ef..9a7a0f3 100644
--- a/drivers/net/netxen/netxen_nic_main.c
+++ b/drivers/net/netxen/netxen_nic_main.c
@@ -1246,8 +1246,8 @@ netxen_nic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
 	int pci_func_id = PCI_FUNC(pdev->devfn);
 	uint8_t revision_id;
 
-	if (pdev->revision >= NX_P3_A0 && pdev->revision < NX_P3_B1) {
-		pr_warning("%s: chip revisions between 0x%x-0x%x"
+	if (pdev->revision >= NX_P3_A0 && pdev->revision <= NX_P3_B1) {
+		pr_warning("%s: chip revisions between 0x%x-0x%x "
 				"will not be enabled.\n",
 				module_name(THIS_MODULE), NX_P3_A0, NX_P3_B1);
 		return -ENODEV;
-- 
1.6.6.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-03-23  3:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-18  8:24 [PATCH] netxen: The driver doesn't work on NX_P3_B1 so cause probe to fail Eric W. Biederman
2010-03-18  8:55 ` Amit Salecha
2010-03-18  9:43   ` Eric W. Biederman
2010-03-19  5:21     ` David Miller
2010-03-19  5:36       ` Amit Salecha
2010-03-19 12:03       ` Amit Salecha
2010-03-22  6:35       ` Amit Salecha
2010-03-23  3:32         ` David Miller
2010-03-18  9:28 ` Amit Salecha

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox