Module Name: src
Committed By: msaitoh
Date: Tue Jun 11 16:57:05 UTC 2013
Modified Files:
src/sys/arch/arm/gemini: if_gmc.c
src/sys/dev/ic: smc91cxx.c
Log Message:
In interrupt function, use mii_pollstat() instead of mii_tick() to update
PHY status.
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/arm/gemini/if_gmc.c
cvs rdiff -u -r1.83 -r1.84 src/sys/dev/ic/smc91cxx.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/arm/gemini/if_gmc.c
diff -u src/sys/arch/arm/gemini/if_gmc.c:1.5 src/sys/arch/arm/gemini/if_gmc.c:1.6
--- src/sys/arch/arm/gemini/if_gmc.c:1.5 Sun Jul 22 14:32:50 2012
+++ src/sys/arch/arm/gemini/if_gmc.c Tue Jun 11 16:57:05 2013
@@ -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 @@ gmc_intr(void *arg)
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);
Index: src/sys/dev/ic/smc91cxx.c
diff -u src/sys/dev/ic/smc91cxx.c:1.83 src/sys/dev/ic/smc91cxx.c:1.84
--- src/sys/dev/ic/smc91cxx.c:1.83 Sat Oct 27 17:18:22 2012
+++ src/sys/dev/ic/smc91cxx.c Tue Jun 11 16:57:05 2013
@@ -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 @@ smc91cxx_intr(void *arg)
/*
* Internal PHY status change
*/
- mii_tick(&sc->sc_mii);
+ mii_pollstat(&sc->sc_mii);
}
/*