summaryrefslogtreecommitdiff
path: root/sys/dev/mii/ciphy.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/mii/ciphy.c')
-rw-r--r--sys/dev/mii/ciphy.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/dev/mii/ciphy.c b/sys/dev/mii/ciphy.c
index 7bc288d080e..ce1d7660bb3 100644
--- a/sys/dev/mii/ciphy.c
+++ b/sys/dev/mii/ciphy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ciphy.c,v 1.4 2005/02/19 06:00:03 brad Exp $ */
+/* $OpenBSD: ciphy.c,v 1.5 2005/03/26 04:40:09 krw Exp $ */
/* $FreeBSD: ciphy.c,v 1.1 2004/09/10 20:57:45 wpaul Exp $ */
/*
* Copyright (c) 2004
@@ -127,8 +127,7 @@ ciphyattach(struct device *parent, struct device *self, void *aux)
sc->mii_rev = MII_REV(ma->mii_id2);
sc->mii_pdata = mii;
sc->mii_flags = ma->mii_flags;
- sc->mii_ticks = 0; /* XXX */
- sc->mii_anegticks = 5;
+ sc->mii_anegticks = MII_ANEGTICKS;
sc->mii_flags |= MIIF_NOISOLATE;
@@ -270,10 +269,9 @@ setit:
break;
/*
- * Only retry autonegotiation every 5 seconds.
+ * Only retry autonegotiation every mii_anegticks seconds.
*/
- //if (++sc->mii_ticks <= 5/*10*/)
- if (++sc->mii_ticks <= sc->mii_anegticks /*10*/)
+ if (++sc->mii_ticks <= sc->mii_anegticks)
break;
sc->mii_ticks = 0;