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/xmphy.c | |
parent | 0ae5a0ab50bff459f896fc99fb5eafd1f60747c8 (diff) |
use anegticks for phys that do their own autonegotiation timeout.
Diffstat (limited to 'sys/dev/mii/xmphy.c')
-rw-r--r-- | sys/dev/mii/xmphy.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/mii/xmphy.c b/sys/dev/mii/xmphy.c index 916e639c9ed..c7ed22901e9 100644 --- a/sys/dev/mii/xmphy.c +++ b/sys/dev/mii/xmphy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xmphy.c,v 1.3 2001/08/19 15:07:34 miod Exp $ */ +/* $OpenBSD: xmphy.c,v 1.4 2001/10/05 18:26:48 nate Exp $ */ /* * Copyright (c) 2000 @@ -105,6 +105,7 @@ xmphy_attach(parent, self, aux) sc->mii_status = xmphy_status; sc->mii_pdata = mii; sc->mii_flags |= MIIF_NOISOLATE | mii->mii_flags; + sc->mii_anegticks = 5; #define ADD(m, c) ifmedia_add(&mii->mii_media, (m), (c), NULL) @@ -208,7 +209,7 @@ xmphy_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; |