fixup pcnet32 workaround xSeries250
PATCH 1/1 fixup pcnet32 workaround xSeries250
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!
drivers/net/pcnet32.c renamed from drivers/net/pcnet32.c.orig +3 -2
@@ -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); }
Jeff Garzik
Appliedthanks, applied to 2.4 and 2.5