Re: 2.4.4-ac8 doesn't work with Lite-On 82c168 PNIC rev 32

Jeff Garzik (jgarzik@mandrakesoft.com)
Fri, 11 May 2001 20:53:23 -0400


This is a multi-part message in MIME format.
--------------8844F6E659122723830D6881
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Here's another patch to try, for PNIC. Feedback welcome.

-- 
Jeff Garzik      | Game called on account of naked chick
Building 1024    |
MandrakeSoft     |
--------------8844F6E659122723830D6881
Content-Type: text/plain; charset=us-ascii;
 name="patch-pnic"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="patch-pnic"

diff -ur 2.4/drivers/net/tulip/media.c build-2.4/drivers/net/tulip/media.c --- 2.4/drivers/net/tulip/media.c Fri May 11 22:12:51 2001 +++ build-2.4/drivers/net/tulip/media.c Fri May 11 22:10:03 2001 @@ -409,8 +409,6 @@ struct tulip_private *tp = dev->priv; unsigned int bmsr, lpa, negotiated, new_csr6; - if (tp->full_duplex_lock) - return 0; bmsr = tulip_mdio_read(dev, tp->phys[0], MII_BMSR); lpa = tulip_mdio_read(dev, tp->phys[0], MII_LPA); if (tulip_debug > 1) @@ -428,7 +426,7 @@ } } negotiated = lpa & tp->advertising[0]; - tp->full_duplex = (mii_nway_result(negotiated) & LPA_DUPLEX) ? 1 : 0; + tp->full_duplex = tp->full_duplex_lock | (mii_nway_result(negotiated) & LPA_DUPLEX) ? 1 : 0; new_csr6 = tp->csr6;

--------------8844F6E659122723830D6881--

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/