Subject: Re: accessing IDE hard drive via pcmcia card
To: Steven M. Bellovin <email@example.com>
From: Charles M. Hannum <firstname.lastname@example.org>
Date: 05/20/2004 05:44:59
On Thursday 20 May 2004 00:58, Steven M. Bellovin wrote:
> In message <20040519192738.GB1820@antioche.eu.org>, Manuel Bouyer writes:
> >How long do you wait ?
> >Per the specs, a reset can take up to 31s.
> That was the answer. I fiddled with my code a bit to allow for a
> longer wait; the drive is now recognized. I'm going to play with
> things a bit more and then send in a PR with the fix.
This "fix" is simply not going to be acceptable as a general-purpose thing.
Not only will it cause us to potentially wait 31 seconds when no drive is
present again, but it will also reintroduce the problem of busy-waiting a
long time when a card is inserted. It has to be done better.