public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fixup pcnet32 workaround xSeries250
@ 2002-05-28  4:50 Go Taniguchi
  2002-05-30  6:14 ` Jeff Garzik
  0 siblings, 1 reply; 2+ messages in thread
From: Go Taniguchi @ 2002-05-28  4:50 UTC (permalink / raw)
  To: jgarzik, linux-kernel; +Cc: akpm

Hi,

I have sent the update patch for pcnet32 which included the workaround for xSeries250 
on the other day.

However, the workaround has the problem with 79C970A 10M full duplex cards 
which causes the netowrk slowing-down.
To solve this problem, the workaound is set to be turned on for "79C975" only.
Please apply.

-- GO!

--- linux/drivers/net/pcnet32.c.orig	Mon May 27 17:15:12 2002
+++ linux/drivers/net/pcnet32.c	Tue May 28 12:35:29 2002
@@ -847,8 +847,9 @@
 	    if (lp->options == (PCNET32_PORT_FD | PCNET32_PORT_AUI))
 		val |= 2;
 	} else if (lp->options & PCNET32_PORT_ASEL) {
-	/* workaround for xSeries250 */
-	    val |= 3;
+	/* workaround of xSeries250, turn on for 79C975 only */
+	    i = ((lp->a.read_csr(ioaddr, 88) | (lp->a.read_csr(ioaddr,89) << 16)) >> 12) & 0xffff;
+	    if (i == 0x2627) val |= 3;
 	}
 	lp->a.write_bcr (ioaddr, 9, val);
     }

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

* Re: [PATCH] fixup pcnet32 workaround xSeries250
  2002-05-28  4:50 [PATCH] fixup pcnet32 workaround xSeries250 Go Taniguchi
@ 2002-05-30  6:14 ` Jeff Garzik
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2002-05-30  6:14 UTC (permalink / raw)
  To: Go Taniguchi; +Cc: linux-kernel, akpm

thanks, applied to 2.4 and 2.5



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

end of thread, other threads:[~2002-05-30  6:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-28  4:50 [PATCH] fixup pcnet32 workaround xSeries250 Go Taniguchi
2002-05-30  6:14 ` Jeff Garzik

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