netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] hp100 -- fixes for new probing.
@ 2003-11-24 23:44 Stephen Hemminger
  2003-12-07 18:48 ` Jeff Garzik
  0 siblings, 1 reply; 8+ messages in thread
From: Stephen Hemminger @ 2003-11-24 23:44 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: netdev

Fixes to net-drivers-2.5-exp patches for hp100
	* EISA device id table needs a terminating string.
	* if one driver built for all variations (ISA, EISA, PCI)
	  then try to have sane error handling on probe.

diff -Nru a/drivers/net/hp100.c b/drivers/net/hp100.c
--- a/drivers/net/hp100.c	Mon Nov 24 15:34:53 2003
+++ b/drivers/net/hp100.c	Mon Nov 24 15:34:53 2003
@@ -201,6 +201,7 @@
 	{ "HWP1990" }, /* HP J2577 */
 	{ "CPX0301" }, /* ReadyLink ENET100-VG4 */
 	{ "CPX0401" }, /* FreedomLine 100/VG */
+	{ "" }
 };
 MODULE_DEVICE_TABLE(eisa, hp100_eisa_tbl);
 #endif
@@ -3045,10 +3046,16 @@
 	err = hp100_isa_init();
 
 #ifdef CONFIG_EISA
-	err |= eisa_driver_register(&hp100_eisa_driver);
+	if (err && err != -ENODEV) 
+		return err;
+
+	err = eisa_driver_register(&hp100_eisa_driver);
 #endif
 #ifdef CONFIG_PCI
-	err |= pci_module_init(&hp100_pci_driver);
+	if (err && err != -ENODEV)
+		return err;
+
+	err = pci_module_init(&hp100_pci_driver);
 #endif
 	return err;
 }

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: [PATCH] hp100 -- fixes for new probing.
@ 2004-02-23  8:48 Cacophonix
  2004-02-23 17:49 ` Stephen Hemminger
  0 siblings, 1 reply; 8+ messages in thread
From: Cacophonix @ 2004-02-23  8:48 UTC (permalink / raw)
  To: shemminger, jt; +Cc: netdev

(resending, copying netdev) 

Hi,
Any idea if any of these patches may have broken hp100 when statically built into the 
kernel (i.e, not as a module)?

Upgrading from 2.6.0-test6 to 2.6.3-mm2 (which does include the latest patchsets for
hp100 from Stephen), the kernel locks up at boot at the point where hp100 
detection/initialization normally occurs (the driver is compiled into the kernel). 
However, changing hp100 to a module, and loading it dynamically works.

Any clues about which of the recent patches between 2.6.0-test6 and 2.6.3-mm2 might
be causing the lockup? Thanks for any pointers.

cheers,
karthik

The /proc/pci data for my hp100 nic:
  Bus  0, device  14, function  0:
    Ethernet controller: Hewlett-Packard Comp J2585B HP 10/100VG P (rev 0).
      IRQ 11.
      Master Capable.  Latency=248.  Min Gnt=8.Max Lat=32.
      I/O at 0xec00 [0xecff].
      Non-prefetchable 32 bit memory at 0xfffac000 [0xfffadfff].





__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools

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

end of thread, other threads:[~2004-02-25 21:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-24 23:44 [PATCH] hp100 -- fixes for new probing Stephen Hemminger
2003-12-07 18:48 ` Jeff Garzik
  -- strict thread matches above, loose matches on Subject: below --
2004-02-23  8:48 Cacophonix
2004-02-23 17:49 ` Stephen Hemminger
2004-02-24 23:36   ` Cacophonix
2004-02-25  1:07     ` Stephen Hemminger
2004-02-25 21:33       ` Cacophonix
2004-02-25 21:40         ` Stephen Hemminger

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).