Convert a timeout loop from 100 iterations of 15uS to 50
iterations of 30uS so that really fast systems stop getting timeout messages from the Riscom driver. Reviewed by: ache, peter@nmti.com (Peter da Silva)
This commit is contained in:
parent
5a453b0ef3
commit
46ed21d1a7
@ -1525,8 +1525,8 @@ rc_wait0(nec, unit, chan, line)
|
||||
{
|
||||
int rcnt;
|
||||
|
||||
for (rcnt = 100; rcnt && rcin(CD180_CCR); rcnt--)
|
||||
DELAY(15);
|
||||
for (rcnt = 50; rcnt && rcin(CD180_CCR); rcnt--)
|
||||
DELAY(30);
|
||||
if (rcnt == 0)
|
||||
printf("rc%d/%d: channel command timeout, rc.c line: %d\n",
|
||||
unit, chan, line);
|
||||
|
@ -1525,8 +1525,8 @@ rc_wait0(nec, unit, chan, line)
|
||||
{
|
||||
int rcnt;
|
||||
|
||||
for (rcnt = 100; rcnt && rcin(CD180_CCR); rcnt--)
|
||||
DELAY(15);
|
||||
for (rcnt = 50; rcnt && rcin(CD180_CCR); rcnt--)
|
||||
DELAY(30);
|
||||
if (rcnt == 0)
|
||||
printf("rc%d/%d: channel command timeout, rc.c line: %d\n",
|
||||
unit, chan, line);
|
||||
|
Loading…
Reference in New Issue
Block a user