Subject: Re: kern/29600: cbb(4) hangs on boot
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: netbsd-bugs
Date: 03/12/2005 07:10:02
The following reply was made to PR kern/29600; it has been noted by GNATS.

From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
To: fun@naobsd.org
Cc: gnats-bugs@netbsd.org
Subject: Re: kern/29600: cbb(4) hangs on boot
Date: Sat, 12 Mar 2005 16:09:49 +0900

 >  		microtime(&before);
 >  		s = splbio();
 > -		while (pwrcycle == sc->sc_pwrcycle)
 > -			tsleep(&sc->sc_pwrcycle, PWAIT, "pccpwr", 0);
 > +		/* XXX: Set timeout to 200ms because power cycle event will be
 > +		   never happened when attaching 16-bit card. */
 > +		error = tsleep(&sc->sc_pwrcycle, PWAIT, "pccpwr", hz/5);
 >  		splx(s);
 
 is there any reason not to check sc_pwrcycle?
 
 YAMAMOTO Takashi