Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbarm/dev Fix the "wait for any pending transmissi...
details: https://anonhg.NetBSD.org/src/rev/65dbc5785b02
branches: trunk
changeset: 357359:65dbc5785b02
user: skrll <skrll%NetBSD.org@localhost>
date: Tue Nov 07 07:21:13 2017 +0000
description:
Fix the "wait for any pending transmission to finish" - doesn't really
matter at the moment as the fifo is disabled.
diffstat:
sys/arch/evbarm/dev/plcom.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 380bd7f4ac75 -r 65dbc5785b02 sys/arch/evbarm/dev/plcom.c
--- a/sys/arch/evbarm/dev/plcom.c Tue Nov 07 07:19:13 2017 +0000
+++ b/sys/arch/evbarm/dev/plcom.c Tue Nov 07 07:21:13 2017 +0000
@@ -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 @@
/* 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);
Home |
Main Index |
Thread Index |
Old Index