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 plcom_common_putc: do not wait for FIFO ...



details:   https://anonhg.NetBSD.org/src/rev/91c5fdc2c62c
branches:  trunk
changeset: 1009527:91c5fdc2c62c
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Apr 25 21:34:08 2020 +0000

description:
plcom_common_putc: do not wait for FIFO to train after writing data

diffstat:

 sys/arch/evbarm/dev/plcom.c |  9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diffs (30 lines):

diff -r ac836768d4ba -r 91c5fdc2c62c sys/arch/evbarm/dev/plcom.c
--- a/sys/arch/evbarm/dev/plcom.c       Sat Apr 25 20:05:25 2020 +0000
+++ b/sys/arch/evbarm/dev/plcom.c       Sat Apr 25 21:34:08 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: plcom.c,v 1.60 2019/11/10 21:16:25 chs Exp $   */
+/*     $NetBSD: plcom.c,v 1.61 2020/04/25 21:34:08 jmcneill Exp $      */
 
 /*-
  * Copyright (c) 2001 ARM Ltd
@@ -94,7 +94,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: plcom.c,v 1.60 2019/11/10 21:16:25 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: plcom.c,v 1.61 2020/04/25 21:34:08 jmcneill Exp $");
 
 #include "opt_plcom.h"
 #include "opt_ddb.h"
@@ -2327,11 +2327,6 @@
        PWRITE1(pi, PL01XCOM_DR, c);
        PLCOM_BARRIER(pi, BR | BW);
 
-       /* wait for this transmission to complete */
-       timo = 1500000;
-       while (!ISSET(PREAD1(pi, PL01XCOM_FR), PL01X_FR_TXFE) && --timo)
-               continue;
-
        splx(s);
 }
 



Home | Main Index | Thread Index | Old Index