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

From: Jeff Garzik (jgarzik@mandrakesoft.com)
Date: Fri May 11 2001 - 19:53:23 EST


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

-- 
Jeff Garzik      | Game called on account of naked chick
Building 1024    |
MandrakeSoft     |

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;

- 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/



This archive was generated by hypermail 2b29 : Tue May 15 2001 - 21:00:29 EST