public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* pcnet32 link detection patch proposal
@ 2004-02-20 18:35 Thomas Munck Steenholdt
  2004-02-20 18:45 ` Randy.Dunlap
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Munck Steenholdt @ 2004-02-20 18:35 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 562 bytes --]

Hi Guys!

A lot of people have been experiencing problems with the pcnet32 nic 
driver that
always returns link down on some devices (including the VMware vlance 
adapter).

The patch makes sure that link is always reported as up (in contrast to 
always
being rported as down) if the device is not MII capable. Devices that 
ARE MII
capable will return whatever mii_link_ok() says.

Please let be know what you think and possible give me a hint as to how 
I can
make sure this fix gets included whereever such a patch should be included!

Thanks a lot!


Thomas

[-- Attachment #2: pcnet32_link_fix.patch --]
[-- Type: text/plain, Size: 1311 bytes --]

diff -ur linux-2.6.2-1.87/drivers/net/pcnet32.c linux-2.6.2-1.87-tmus/drivers/net/pcnet32.c
--- linux-2.6.2-1.87/drivers/net/pcnet32.c	2004-02-19 00:27:36.033478624 +0100
+++ linux-2.6.2-1.87-tmus/drivers/net/pcnet32.c	2004-02-19 00:26:03.733510352 +0100
@@ -22,8 +22,8 @@
  *************************************************************************/
 
 #define DRV_NAME	"pcnet32"
-#define DRV_VERSION	"1.27b"
-#define DRV_RELDATE	"01.10.2002"
+#define DRV_VERSION	"1.27c"
+#define DRV_RELDATE	"02.19.2004"
 #define PFX		DRV_NAME ": "
 
 static const char *version =
@@ -213,6 +213,8 @@
  *	   clean up and using new mii module
  * v1.27b  Sep 30 2002 Kent Yoder <yoder1@us.ibm.com>
  * 	   Added timer for cable connection state changes.
+ * v1.27c  Feb 19 2004 Thomas M Steenholdt <tmus@tmus.dk>
+ *         fixed link status on non-mii capable devices.
  */
 
 
@@ -1630,7 +1632,10 @@
 	/* get link status */
 	case ETHTOOL_GLINK: {
 		struct ethtool_value edata = {ETHTOOL_GLINK};
-		edata.data = mii_link_ok(&lp->mii_if);
+                /* read link status  */
+		if(lp->mii) edata.data = mii_link_ok(&lp->mii_if);
+                /* always return link ok for non-mii devices */
+                else edata.data = 1;
 		if (copy_to_user(useraddr, &edata, sizeof(edata)))
 			return -EFAULT;
 		return 0;

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

* Re: pcnet32 link detection patch proposal
  2004-02-20 18:35 pcnet32 link detection patch proposal Thomas Munck Steenholdt
@ 2004-02-20 18:45 ` Randy.Dunlap
  2004-02-20 19:39   ` Thomas Munck Steenholdt
  0 siblings, 1 reply; 4+ messages in thread
From: Randy.Dunlap @ 2004-02-20 18:45 UTC (permalink / raw)
  To: Thomas Munck Steenholdt; +Cc: linux-kernel

On Fri, 20 Feb 2004 19:35:20 +0100 Thomas Munck Steenholdt <tmus@tmus.dk> wrote:

| Hi Guys!
| 
| A lot of people have been experiencing problems with the pcnet32 nic 
| driver that
| always returns link down on some devices (including the VMware vlance 
| adapter).
| 
| The patch makes sure that link is always reported as up (in contrast to 
| always
| being rported as down) if the device is not MII capable. Devices that 
| ARE MII
| capable will return whatever mii_link_ok() says.
| 
| Please let be know what you think and possible give me a hint as to how 
| I can
| make sure this fix gets included whereever such a patch should be included!
| 
| Thanks a lot!

Hi,

There has been some recent pcnet32 driver activity on the netdev
mailing list.  Try that list.
Recent patches have been from Don Fry (brazilnut@us.ibm.com).
Mail archives for it are here:
  http://oss.sgi.com/projects/netdev/archive/
	

--
~Randy

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

* Re: pcnet32 link detection patch proposal
  2004-02-20 18:45 ` Randy.Dunlap
@ 2004-02-20 19:39   ` Thomas Munck Steenholdt
  2004-02-20 19:41     ` Randy.Dunlap
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Munck Steenholdt @ 2004-02-20 19:39 UTC (permalink / raw)
  To: Randy.Dunlap; +Cc: linux-kernel

Randy.Dunlap wrote:

>Hi,
>
>There has been some recent pcnet32 driver activity on the netdev
>mailing list.  Try that list.
>Recent patches have been from Don Fry (brazilnut@us.ibm.com).
>Mail archives for it are here:
>  http://oss.sgi.com/projects/netdev/archive/
>	
>  
>
Is this the "main" place for linux net stuff???

/Thomas

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

* Re: pcnet32 link detection patch proposal
  2004-02-20 19:39   ` Thomas Munck Steenholdt
@ 2004-02-20 19:41     ` Randy.Dunlap
  0 siblings, 0 replies; 4+ messages in thread
From: Randy.Dunlap @ 2004-02-20 19:41 UTC (permalink / raw)
  To: Thomas Munck Steenholdt; +Cc: linux-kernel

On Fri, 20 Feb 2004 20:39:00 +0100 Thomas Munck Steenholdt <tmus@tmus.dk> wrote:

| Randy.Dunlap wrote:
| 
| >Hi,
| >
| >There has been some recent pcnet32 driver activity on the netdev
| >mailing list.  Try that list.
| >Recent patches have been from Don Fry (brazilnut@us.ibm.com).
| >Mail archives for it are here:
| >  http://oss.sgi.com/projects/netdev/archive/
| >	
| >  
| >
| Is this the "main" place for linux net stuff???


Yes, for linux networking development.

Linux user networking email goes to linux-net@vger.kernel.org .

--
~Randy

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

end of thread, other threads:[~2004-02-20 19:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-20 18:35 pcnet32 link detection patch proposal Thomas Munck Steenholdt
2004-02-20 18:45 ` Randy.Dunlap
2004-02-20 19:39   ` Thomas Munck Steenholdt
2004-02-20 19:41     ` Randy.Dunlap

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