From 11f73a416e2ec0096c8c78a60f9b37c34c090baf Mon Sep 17 00:00:00 2001 From: Bill Paul Date: Sun, 30 Aug 1998 22:24:18 +0000 Subject: [PATCH] Change the autonegotiation waiting period from 3 seconds to 5. This delay controls how long the driver waits for autonegotiation to complete after setting the 'autoneg restart bit' in a PHY. In some cases, it seems 3 seconds is not long enough: with 3c905-TX cards (external PHY), you sometimes see 'autoneg not complete; no carrier' errors due to the timeout being too short. (3c905B adapters seem to be happy with 3 seconds though.) --- sys/pci/if_xl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/pci/if_xl.c b/sys/pci/if_xl.c index 2bc1d5d87d74..3d47c692f49f 100644 --- a/sys/pci/if_xl.c +++ b/sys/pci/if_xl.c @@ -29,7 +29,7 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF * THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: if_xl.c,v 1.44 1998/08/23 21:30:02 wpaul Exp $ + * $Id: if_xl.c,v 1.5 1998/08/24 17:51:38 wpaul Exp $ */ /* @@ -124,7 +124,7 @@ #ifndef lint static char rcsid[] = - "$Id: if_xl.c,v 1.44 1998/08/23 21:30:02 wpaul Exp $"; + "$Id: if_xl.c,v 1.5 1998/08/24 17:51:38 wpaul Exp $"; #endif /* @@ -786,7 +786,7 @@ static void xl_autoneg_mii(sc, flag, verbose) return; } xl_autoneg_xmit(sc); - ifp->if_timer = 3; + ifp->if_timer = 5; sc->xl_autoneg = 1; sc->xl_want_auto = 0; return;