Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/booke/dev Don't use the current value of ma...



details:   https://anonhg.NetBSD.org/src/rev/49259e7d3b9b
branches:  trunk
changeset: 778922:49259e7d3b9b
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Apr 20 13:51:48 2012 +0000

description:
Don't use the current value of maccfg2.

diffstat:

 sys/arch/powerpc/booke/dev/pq3etsec.c |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (37 lines):

diff -r 228af72129f5 -r 49259e7d3b9b sys/arch/powerpc/booke/dev/pq3etsec.c
--- a/sys/arch/powerpc/booke/dev/pq3etsec.c     Fri Apr 20 13:28:27 2012 +0000
+++ b/sys/arch/powerpc/booke/dev/pq3etsec.c     Fri Apr 20 13:51:48 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pq3etsec.c,v 1.11 2012/04/19 21:32:01 matt Exp $       */
+/*     $NetBSD: pq3etsec.c,v 1.12 2012/04/20 13:51:48 matt Exp $       */
 /*-
  * Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pq3etsec.c,v 1.11 2012/04/19 21:32:01 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pq3etsec.c,v 1.12 2012/04/20 13:51:48 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/cpu.h>
@@ -501,6 +501,8 @@
        sc->sc_macstnaddr2 = etsec_read(sc, MACSTNADDR2);
        sc->sc_macstnaddr1 = etsec_read(sc, MACSTNADDR1);
        sc->sc_rctrl = RCTRL_DEFAULT;
+       sc->sc_ecntrl = etsec_read(sc, ECNTRL);
+       sc->sc_maccfg1 = etsec_read(sc, MACCFG1);
        sc->sc_maccfg2 = MACCFG2_DEFAULT;
 
        if (sc->sc_macstnaddr1 == 0 && sc->sc_macstnaddr2 == 0) {
@@ -592,9 +594,6 @@
 
        etsec_write(sc, ATTR, ATTR_DEFAULT);
        etsec_write(sc, ATTRELI, ATTRELI_DEFAULT);
-       sc->sc_maccfg1 = etsec_read(sc, MACCFG1);
-       sc->sc_maccfg2 = etsec_read(sc, MACCFG2);
-       sc->sc_ecntrl = etsec_read(sc, ECNTRL);
 
        sc->sc_lock = mutex_obj_alloc(MUTEX_DEFAULT, IPL_SOFTNET);
 



Home | Main Index | Thread Index | Old Index