diff options
author | Nathan Binkert <nate@cvs.openbsd.org> | 2001-10-05 18:26:49 +0000 |
---|---|---|
committer | Nathan Binkert <nate@cvs.openbsd.org> | 2001-10-05 18:26:49 +0000 |
commit | de5fe176f03542ed799c88839ae0f6c9d636057c (patch) | |
tree | 9c44591d3198d6ec88f8b09fe2ed1f1554c36d65 /sys/dev/mii/brgphy.c | |
parent | 0ae5a0ab50bff459f896fc99fb5eafd1f60747c8 (diff) |
use anegticks for phys that do their own autonegotiation timeout.
Diffstat (limited to 'sys/dev/mii/brgphy.c')
-rw-r--r-- | sys/dev/mii/brgphy.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; |