Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Broadcom AUX UART doesn't seem to set LSR RXRDY b...
details: https://anonhg.NetBSD.org/src/rev/8c0a7fa091c1
branches: trunk
changeset: 355511:8c0a7fa091c1
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Mon Jul 31 23:53:25 2017 +0000
description:
Broadcom AUX UART doesn't seem to set LSR RXRDY bit when data is available
in the RX FIFO.
diffstat:
sys/dev/ic/com.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 31d1be1fcf60 -r 8c0a7fa091c1 sys/dev/ic/com.c
--- a/sys/dev/ic/com.c Mon Jul 31 19:29:19 2017 +0000
+++ b/sys/dev/ic/com.c Mon Jul 31 23:53:25 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: com.c,v 1.340 2017/07/31 09:25:14 jmcneill Exp $ */
+/* $NetBSD: com.c,v 1.341 2017/07/31 23:53:25 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.340 2017/07/31 09:25:14 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.341 2017/07/31 23:53:25 jmcneill Exp $");
#include "opt_com.h"
#include "opt_ddb.h"
@@ -2116,6 +2116,9 @@
#endif
}
+ if (sc->sc_type == COM_TYPE_BCMAUXUART && ISSET(iir, IIR_RXRDY))
+ lsr |= LSR_RXRDY;
+
if (ISSET(lsr, LSR_RCV_MASK) &&
!ISSET(sc->sc_rx_flags, RX_IBUF_OVERFLOWED)) {
while (cc > 0) {
Home |
Main Index |
Thread Index |
Old Index