Tue Jun 11 16:57:05 2013 UTC ()
In interrupt function, use mii_pollstat() instead of mii_tick() to update
PHY status.


(msaitoh)
diff -r1.5 -r1.6 src/sys/arch/arm/gemini/if_gmc.c
diff -r1.83 -r1.84 src/sys/dev/ic/smc91cxx.c

cvs diff -r1.5 -r1.6 src/sys/arch/arm/gemini/if_gmc.c (expand / switch to context diff)
--- src/sys/arch/arm/gemini/if_gmc.c 2012/07/22 14:32:50 1.5
+++ src/sys/arch/arm/gemini/if_gmc.c 2013/06/11 16:57:05 1.6
@@ -1,4 +1,4 @@
-/* $NetBSD: if_gmc.c,v 1.5 2012/07/22 14:32:50 matt Exp $ */
+/* $NetBSD: if_gmc.c,v 1.6 2013/06/11 16:57:05 msaitoh Exp $ */
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -47,7 +47,7 @@
 #include <net/if_ether.h>
 #include <net/if_dl.h>
 
-__KERNEL_RCSID(0, "$NetBSD: if_gmc.c,v 1.5 2012/07/22 14:32:50 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_gmc.c,v 1.6 2013/06/11 16:57:05 msaitoh Exp $");
 
 #define	MAX_TXSEG	32
 
@@ -706,7 +706,7 @@
 		sc->sc_if.if_ierrors++;
 	}
 	if (status & INT4_RGMII_STSCHG) {
-		mii_tick(&sc->sc_mii);
+		mii_pollstat(&sc->sc_mii);
 	}
 	bus_space_write_4(sc->sc_iot, sc->sc_ioh, GMAC_INT4_STATUS, status);
 

cvs diff -r1.83 -r1.84 src/sys/dev/ic/smc91cxx.c (expand / switch to context diff)
--- src/sys/dev/ic/smc91cxx.c 2012/10/27 17:18:22 1.83
+++ src/sys/dev/ic/smc91cxx.c 2013/06/11 16:57:05 1.84
@@ -1,4 +1,4 @@
-/*	$NetBSD: smc91cxx.c,v 1.83 2012/10/27 17:18:22 chs Exp $	*/
+/*	$NetBSD: smc91cxx.c,v 1.84 2013/06/11 16:57:05 msaitoh Exp $	*/
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: smc91cxx.c,v 1.83 2012/10/27 17:18:22 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: smc91cxx.c,v 1.84 2013/06/11 16:57:05 msaitoh Exp $");
 
 #include "opt_inet.h"
 
@@ -1102,7 +1102,7 @@
 		/*
 		 * Internal PHY status change
 		 */
-		mii_tick(&sc->sc_mii);
+		mii_pollstat(&sc->sc_mii);
 	}
 
 	/*