Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/marvell Initialize MVGBE_MTU to 0, as suggested by t...



details:   https://anonhg.NetBSD.org/src/rev/b3e6c433054a
branches:  trunk
changeset: 769154:b3e6c433054a
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Thu Sep 01 14:39:03 2011 +0000

description:
Initialize MVGBE_MTU to 0, as suggested by the Orion databook.

If the platform firmware did not initialize this to 0 for us,
we were unable to transmit frames.

diffstat:

 sys/dev/marvell/if_mvgbe.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 8662af7de156 -r b3e6c433054a sys/dev/marvell/if_mvgbe.c
--- a/sys/dev/marvell/if_mvgbe.c        Thu Sep 01 14:07:36 2011 +0000
+++ b/sys/dev/marvell/if_mvgbe.c        Thu Sep 01 14:39:03 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_mvgbe.c,v 1.10 2011/07/30 19:06:57 rjs Exp $        */
+/*     $NetBSD: if_mvgbe.c,v 1.11 2011/09/01 14:39:03 jakllsch Exp $   */
 /*
  * Copyright (c) 2007, 2008 KIYOHARA Takashi
  * All rights reserved.
@@ -25,7 +25,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_mvgbe.c,v 1.10 2011/07/30 19:06:57 rjs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_mvgbe.c,v 1.11 2011/09/01 14:39:03 jakllsch Exp $");
 
 #include "rnd.h"
 
@@ -980,6 +980,7 @@
                return ENOBUFS;
        }
 
+       MVGBE_WRITE(sc, MVGBE_MTU, 0);          /* hw reset value is wrong */
        MVGBE_WRITE(sc, MVGBE_PSC,
            MVGBE_PSC_ANFC |                    /* Enable Auto-Neg Flow Ctrl */
            MVGBE_PSC_RESERVED |                /* Must be set to 1 */



Home | Main Index | Thread Index | Old Index