Subject: Re: kern/22869: Slave IDE drive not detected
To: Charles M. Hannum <abuse@spamalicious.com>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: tech-kern
Date: 09/23/2003 11:17:34
On Tue, Sep 23, 2003 at 04:49:23AM +0000, Charles M. Hannum wrote:
> 
> Hmmm, if my reading of the spec is correct, device 0 must *wait* for
> device 1 to assert PDIAG before it deasserts BSY -- so if drv_mask&1,

Yes

> we probably only need to wait for device 0 to deassert BSY.  This
> would deal cleanly with the delay in __wdcwait_reset() in the "device
> 1 absent" cases.

But if device 1 is absent, we'll read device 0 registers content when
device is selected. So in this case, BSY should be cleared for
both device 0 and device 1 at the same time.

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
     NetBSD: 24 ans d'experience feront toujours la difference
--