Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/imx always re-read status register in the loop.
details: https://anonhg.NetBSD.org/src/rev/98a4c05faefe
branches: trunk
changeset: 981325:98a4c05faefe
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Mon Mar 08 06:23:31 2021 +0000
description:
always re-read status register in the loop.
diffstat:
sys/arch/arm/imx/imxuart.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (40 lines):
diff -r e01484a9ab3d -r 98a4c05faefe sys/arch/arm/imx/imxuart.c
--- a/sys/arch/arm/imx/imxuart.c Sun Mar 07 22:11:01 2021 +0000
+++ b/sys/arch/arm/imx/imxuart.c Mon Mar 08 06:23:31 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: imxuart.c,v 1.26 2020/11/20 18:16:40 thorpej Exp $ */
+/* $NetBSD: imxuart.c,v 1.27 2021/03/08 06:23:31 mlelstv Exp $ */
/*
* Copyright (c) 2009, 2010 Genetec Corporation. All rights reserved.
@@ -96,7 +96,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: imxuart.c,v 1.26 2020/11/20 18:16:40 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: imxuart.c,v 1.27 2021/03/08 06:23:31 mlelstv Exp $");
#include "opt_imxuart.h"
#include "opt_ddb.h"
@@ -1720,11 +1720,11 @@
cn_check_magic(sc->sc_tty->t_dev,
CNC_BREAK, imxuart_cnm_state);
if (cn_trapped)
- continue;
+ goto next;
#if defined(KGDB) && !defined(DDB)
if (ISSET(sc->sc_hwflags, IMXUART_HW_KGDB)) {
kgdb_connect(1);
- continue;
+ goto next;
}
#endif
}
@@ -1776,6 +1776,7 @@
}
#endif
+next:
usr2 = bus_space_read_4(iot, ioh, IMX_USR2);
} while (usr2 & (IMX_USR2_RDR|IMX_USR2_BRCD));
Home |
Main Index |
Thread Index |
Old Index