Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/mii ciphy is gigabit PHY, so use MII_ANEGTICKS_GIGE ...
details: https://anonhg.NetBSD.org/src/rev/3d11b8b305ed
branches: trunk
changeset: 787280:3d11b8b305ed
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Sun Jun 09 08:45:32 2013 +0000
description:
ciphy is gigabit PHY, so use MII_ANEGTICKS_GIGE instead of MII_ANEGTICKS.
diffstat:
sys/dev/mii/ciphy.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r 340495cb9164 -r 3d11b8b305ed sys/dev/mii/ciphy.c
--- a/sys/dev/mii/ciphy.c Sun Jun 09 08:42:16 2013 +0000
+++ b/sys/dev/mii/ciphy.c Sun Jun 09 08:45:32 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ciphy.c,v 1.21 2013/06/09 08:42:16 msaitoh Exp $ */
+/* $NetBSD: ciphy.c,v 1.22 2013/06/09 08:45:32 msaitoh Exp $ */
/*-
* Copyright (c) 2004
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ciphy.c,v 1.21 2013/06/09 08:42:16 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ciphy.c,v 1.22 2013/06/09 08:45:32 msaitoh Exp $");
/*
* Driver for the Cicada CS8201 10/100/1000 copper PHY.
@@ -271,9 +271,9 @@
break;
/*
- * Only retry autonegotiation every 5 seconds.
+ * Only retry autonegotiation every N seconds.
*/
- if (++sc->mii_ticks <= MII_ANEGTICKS)
+ if (++sc->mii_ticks <= MII_ANEGTICKS_GIGE)
break;
mii_phy_auto(sc, 0);
Home |
Main Index |
Thread Index |
Old Index