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/c3a28a96f02d
branches:  trunk
changeset: 1014730:c3a28a96f02d
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 b4e6a7dc3f72 -r c3a28a96f02d 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