Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys In interrupt function, use mii_pollstat() instead of mii...



details:   https://anonhg.NetBSD.org/src/rev/73bbc2542068
branches:  trunk
changeset: 787337:73bbc2542068
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Tue Jun 11 16:57:05 2013 +0000

description:
In interrupt function, use mii_pollstat() instead of mii_tick() to update
PHY status.

diffstat:

 sys/arch/arm/gemini/if_gmc.c |  6 +++---
 sys/dev/ic/smc91cxx.c        |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r e23e70d1b4fd -r 73bbc2542068 sys/arch/arm/gemini/if_gmc.c
--- a/sys/arch/arm/gemini/if_gmc.c      Tue Jun 11 16:37:10 2013 +0000
+++ b/sys/arch/arm/gemini/if_gmc.c      Tue Jun 11 16:57:05 2013 +0000
@@ -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);
 
diff -r e23e70d1b4fd -r 73bbc2542068 sys/dev/ic/smc91cxx.c
--- a/sys/dev/ic/smc91cxx.c     Tue Jun 11 16:37:10 2013 +0000
+++ b/sys/dev/ic/smc91cxx.c     Tue Jun 11 16:57:05 2013 +0000
@@ -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);
        }
 
        /*



Home | Main Index | Thread Index | Old Index