Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/marvell Set mva_size in the console case.



details:   https://anonhg.NetBSD.org/src/rev/4cc14f9959ed
branches:  trunk
changeset: 761458:4cc14f9959ed
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Fri Jan 28 16:12:22 2011 +0000

description:
Set mva_size in the console case.
Addresses first portion of PR#43990.

diffstat:

 sys/dev/marvell/com_mv.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r 9c0aed906c82 -r 4cc14f9959ed sys/dev/marvell/com_mv.c
--- a/sys/dev/marvell/com_mv.c  Fri Jan 28 13:02:34 2011 +0000
+++ b/sys/dev/marvell/com_mv.c  Fri Jan 28 16:12:22 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: com_mv.c,v 1.4 2010/09/04 05:01:20 kiyohara Exp $      */
+/*     $NetBSD: com_mv.c,v 1.5 2011/01/28 16:12:22 jakllsch Exp $      */
 /*
  * Copyright (c) 2007, 2010 KIYOHARA Takashi
  * All rights reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: com_mv.c,v 1.4 2010/09/04 05:01:20 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: com_mv.c,v 1.5 2011/01/28 16:12:22 jakllsch Exp $");
 
 #include "opt_com.h"
 
@@ -88,7 +88,7 @@
                return 0;
 
        if (com_is_console(mva->mva_iot, mva->mva_addr + mva->mva_offset, NULL))
-               return 1;
+               goto console;
 
        if (bus_space_subregion(mva->mva_iot, mva->mva_ioh, mva->mva_offset,
            MVUART_SIZE, &ioh))
@@ -97,6 +97,7 @@
        if (!com_probe_subr(&regs))
                return 0;
 
+console:
        mva->mva_size = MVUART_SIZE;
        return 1;
 }



Home | Main Index | Thread Index | Old Index