Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Replace the #ifdef'ed variable DELAYs with a pair...



details:   https://anonhg.NetBSD.org/src/rev/656a78d2dceb
branches:  trunk
changeset: 467818:656a78d2dceb
user:      perry <perry%NetBSD.org@localhost>
date:      Mon Mar 29 21:50:06 1999 +0000

description:
Replace the #ifdef'ed variable DELAYs with a pair of non-ifdefed
DELAY(1)'s. This should fix interrupt driven lpt driver hang and
reboot problems for the group of users who have experienced them, and
shouldn't hurt anyone else.

diffstat:

 sys/dev/ic/lpt.c |  12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)

diffs (27 lines):

diff -r 35488d9ebb90 -r 656a78d2dceb sys/dev/ic/lpt.c
--- a/sys/dev/ic/lpt.c  Mon Mar 29 21:36:00 1999 +0000
+++ b/sys/dev/ic/lpt.c  Mon Mar 29 21:50:06 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lpt.c,v 1.54 1999/03/25 02:17:38 perry Exp $   */
+/*     $NetBSD: lpt.c,v 1.55 1999/03/29 21:50:06 perry Exp $   */
 
 /*
  * Copyright (c) 1993, 1994 Charles M. Hannum.
@@ -389,15 +389,9 @@
                u_char control = sc->sc_control;
                /* send char */
                bus_space_write_1(iot, ioh, lpt_data, *sc->sc_cp++);
-#ifdef BROKEN_LPT_DELAY
-               /* Kludge to prevent mysterious hangs and reboots. */
-               DELAY(BROKEN_LPT_DELAY);
-#endif
+               DELAY(1);
                bus_space_write_1(iot, ioh, lpt_control, control | LPC_STROBE);
-#ifdef BROKEN_LPT_DELAY
-               /* Kludge to prevent mysterious hangs and reboots. */
-               DELAY(BROKEN_LPT_DELAY);
-#endif
+               DELAY(1);
                sc->sc_count--;
                bus_space_write_1(iot, ioh, lpt_control, control);
                sc->sc_state |= LPT_OBUSY;



Home | Main Index | Thread Index | Old Index