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.
This commit is contained in:
Peter Wemm 1996-05-30 23:41:35 +00:00
parent 829bde8e5b
commit c15b6c4bc6
2 changed files with 8 additions and 8 deletions

View File

@ -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;
}
}

View File

@ -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;
}
}