Subject: Re: 'wdc0 at isa0...' panics in -current
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Jared D. McNeill <jmcneill@invisible.yi.org>
List: port-i386
Date: 01/14/2002 17:27:38
Manuel Bouyer wrote:

>This is really strange, chp->wdc isn't used at all in __wdcwait_reset()
>I'll compile a kernel on my box and see what happens.
>

Have a look at the top of the loop in __wdcwait_reset():

        /* wait for BSY to deassert */
        for (timeout = 0; timeout < WDCNDELAY_RST;timeout++) {
                if (chp->wdc->cap & WDC_CAPABILITY_SELECT)
                        chp->wdc->select(chp,0);

Then, after a few bus_space_read's:

                if (chp->wdc->cap & WDC_CAPABILITY_SELECT)
                        chp->wdc->select(chp,1);

Jared