From de5fe176f03542ed799c88839ae0f6c9d636057c Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Fri, 5 Oct 2001 18:26:49 +0000 Subject: use anegticks for phys that do their own autonegotiation timeout. --- sys/dev/mii/brgphy.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/dev/mii/brgphy.c') diff --git a/sys/dev/mii/brgphy.c b/sys/dev/mii/brgphy.c index af7ffc56ce6..8f099d2267f 100644 --- a/sys/dev/mii/brgphy.c +++ b/sys/dev/mii/brgphy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: brgphy.c,v 1.5 2001/08/19 15:07:34 miod Exp $ */ +/* $OpenBSD: brgphy.c,v 1.6 2001/10/05 18:26:48 nate Exp $ */ /* * Copyright (c) 2000 @@ -116,6 +116,7 @@ brgphy_attach(parent, self, aux) sc->mii_status = brgphy_status; sc->mii_pdata = mii; sc->mii_flags |= MIIF_NOISOLATE; + sc->mii_anegticks = 10; mii_phy_reset(sc); @@ -255,7 +256,7 @@ brgphy_service(sc, mii, cmd) /* * Only retry autonegotiation every 5 seconds. */ - if (++sc->mii_ticks != 5) + if (++sc->mii_ticks != sc->mii_anegticks) return (0); sc->mii_ticks = 0; -- cgit v1.2.3