Fixes apparent hang at probe time due to an extremely long timeout

(experienced with an Opti931/ISA PnP card).

Approved by:	cg
This commit is contained in:
Pierre Beyssac 2001-12-21 23:26:55 +00:00
parent b83a42d36f
commit 5a8c4e90b9

View File

@ -821,7 +821,7 @@ ad_wait_init(struct mss_info *mss, int x)
{
int arg = x, n = 0; /* to shut up the compiler... */
for (; x > 0; x--)
if ((n = io_rd(mss, MSS_INDEX)) & MSS_IDXBUSY) DELAY(10000);
if ((n = io_rd(mss, MSS_INDEX)) & MSS_IDXBUSY) DELAY(10);
else return n;
printf("AD_WAIT_INIT FAILED %d 0x%02x\n", arg, n);
return n;