Subject: Re: smartmedia adaptors
To: Jukka Marin <jmarin@pyy.jmp.fi>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: tech-kern
Date: 01/26/2000 22:09:21
On Wed, Jan 26, 2000 at 08:04:25AM +0200, Jukka Marin wrote:
> On Tue, Jan 25, 2000 at 06:18:00PM -0800, Chris G. Demetriou wrote:
> > certainly, a DIAGNOSTIC check if it's a long delay might be in order.
> > i dunno.
> 
> How about code segments like
> 
> 	for (i = 0; i < 10000000; i++) {
> 		if (something) break;
> 		delay(50);
> 	}
> 
> A small delay.. which can become a very large one.  (I have seen this
> kind of loops somewhere..)

In wdcprobe() maybe ? :)
it wdcreset_wait() does exactly this, that's why the long delay isn't ususally
noticed.

--
Manuel Bouyer <bouyer@antioche.eu.org>
--