Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Set sc_fifolen=1 for the no fifo case



details:   https://anonhg.NetBSD.org/src/rev/3c59ba31f997
branches:  trunk
changeset: 955471:3c59ba31f997
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Wed Sep 30 14:56:34 2020 +0000

description:
Set sc_fifolen=1 for the no fifo case

diffstat:

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

diffs (26 lines):

diff -r 82fed6de4af4 -r 3c59ba31f997 sys/dev/ic/com.c
--- a/sys/dev/ic/com.c  Wed Sep 30 14:54:33 2020 +0000
+++ b/sys/dev/ic/com.c  Wed Sep 30 14:56:34 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: com.c,v 1.360 2020/09/28 11:33:15 jmcneill Exp $ */
+/* $NetBSD: com.c,v 1.361 2020/09/30 14:56:34 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999, 2004, 2008 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.360 2020/09/28 11:33:15 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.361 2020/09/30 14:56:34 jmcneill Exp $");
 
 #include "opt_com.h"
 #include "opt_ddb.h"
@@ -543,6 +543,7 @@
                    DW_APB_UART_CPR);
                sc->sc_fifolen = __SHIFTOUT(cpr, UART_CPR_FIFO_MODE) * 16;
                if (sc->sc_fifolen == 0) {
+                       sc->sc_fifolen = 1;
                        fifo_msg = "DesignWare APB UART, no fifo";
                        CSR_WRITE_1(regsp, COM_REG_FIFO, 0);
                } else {



Home | Main Index | Thread Index | Old Index