Module Name: src
Committed By: skrll
Date: Tue Nov 7 07:21:13 UTC 2017
Modified Files:
src/sys/arch/evbarm/dev: plcom.c
Log Message:
Fix the "wait for any pending transmission to finish" - doesn't really
matter at the moment as the fifo is disabled.
To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/sys/arch/evbarm/dev/plcom.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/evbarm/dev/plcom.c
diff -u src/sys/arch/evbarm/dev/plcom.c:1.52 src/sys/arch/evbarm/dev/plcom.c:1.53
--- src/sys/arch/evbarm/dev/plcom.c:1.52 Mon Apr 13 21:18:41 2015
+++ src/sys/arch/evbarm/dev/plcom.c Tue Nov 7 07:21:13 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: plcom.c,v 1.52 2015/04/13 21:18:41 riastradh Exp $ */
+/* $NetBSD: plcom.c,v 1.53 2017/11/07 07:21:13 skrll Exp $ */
/*-
* Copyright (c) 2001 ARM Ltd
@@ -94,7 +94,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: plcom.c,v 1.52 2015/04/13 21:18:41 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: plcom.c,v 1.53 2017/11/07 07:21:13 skrll Exp $");
#include "opt_plcom.h"
#include "opt_ddb.h"
@@ -2323,7 +2323,7 @@ plcom_common_putc(dev_t dev, struct plco
/* wait for any pending transmission to finish */
timo = 150000;
- while (!ISSET(PREAD1(pi, PL01XCOM_FR), PL01X_FR_TXFE) && --timo)
+ while (ISSET(PREAD1(pi, PL01XCOM_FR), PL01X_FR_TXFF) && --timo)
continue;
PWRITE1(pi, PL01XCOM_DR, c);