2002-02-12 11:46:47

by Go Taniguchi

[permalink] [raw]
Subject: [PATCH] pcnet32 workaround for IBM xSeries250

This is workaround for IBM xSeries250 onbord AMD79C975.
Auto negotiation failed with full duplex HUB.

If we set it to auto negotiation, this patch will be meaningless.
However, this patch is needed by auto-negotiation of full-duplex

The status is as follows:

setup HUB to half duplex. link OK
setup HUB to full duplex. link OK

Of course, AMD79C973 wrok too.
It's been tested by IBM staff too.

--- linux/drivers/net/pcnet32.c.orig Sun Jan 27 02:30:16 2002
+++ linux/drivers/net/pcnet32.c Sun Jan 27 02:37:16 2002
@@ -857,6 +857,9 @@
val |= 1;
if (lp->options == (PORT_FD | PORT_AUI))
val |= 2;
+ } else if (lp->options & PORT_ASEL) {
+ /* workaround for xSeries250 */
+ val |= 3;
}
lp->a.write_bcr (ioaddr, 9, val);
}