From c15b6c4bc6ebee9d3cfb2ed9365183bcbb02101a Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Thu, 30 May 1996 23:41:35 +0000 Subject: When estimating the time (in ms) left to drain the output queue based on the baud rate, dont get upset if it's been hung up by setting B0. Instead, sleep for a short time, as the host controller takes a while to go through the state changes. --- sys/dev/si/si.c | 8 ++++---- sys/i386/isa/si.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'sys') diff --git a/sys/dev/si/si.c b/sys/dev/si/si.c index cdcba6219c6f..72309a78bd9f 100644 --- a/sys/dev/si/si.c +++ b/sys/dev/si/si.c @@ -30,7 +30,7 @@ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN * NO EVENT SHALL THE AUTHORS BE LIABLE. * - * $Id: si.c,v 1.39 1996/05/05 17:35:19 peter Exp $ + * $Id: si.c,v 1.40 1996/05/08 04:48:25 peter Exp $ */ #ifndef lint @@ -2134,9 +2134,9 @@ si_start(tp) else time = 2; } else { - printf("si%d: bad char time value!!\n", - (int)SI_CARD(tp->t_dev)); - goto out; + DPRINT((pp, DBG_START, + "bad char time value! %d\n", time)); + time = hz/10; } } diff --git a/sys/i386/isa/si.c b/sys/i386/isa/si.c index cdcba6219c6f..72309a78bd9f 100644 --- a/sys/i386/isa/si.c +++ b/sys/i386/isa/si.c @@ -30,7 +30,7 @@ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN * NO EVENT SHALL THE AUTHORS BE LIABLE. * - * $Id: si.c,v 1.39 1996/05/05 17:35:19 peter Exp $ + * $Id: si.c,v 1.40 1996/05/08 04:48:25 peter Exp $ */ #ifndef lint @@ -2134,9 +2134,9 @@ si_start(tp) else time = 2; } else { - printf("si%d: bad char time value!!\n", - (int)SI_CARD(tp->t_dev)); - goto out; + DPRINT((pp, DBG_START, + "bad char time value! %d\n", time)); + time = hz/10; } } -- cgit v1.3