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/a009f5f19d86
branches:  trunk
changeset: 827660:a009f5f19d86
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 92180982dff1 -r a009f5f19d86 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