Subject: Re: bug in cbb power reactivation (patch)
To: None <tech-kern@netbsd.org>
From: Charles M. Hannum <mycroft@MIT.EDU>
List: tech-kern
Date: 04/17/2006 16:44:15
On Sun, Apr 16, 2006 at 10:55:41PM -0500, David Young wrote:
> I have attached a patch that makes pccbb_power() consume the power-cycle
> event *always*, even on a powerup->powerdown transition.  Also, it DTRT
> before interrupts have been enabled.  Comments, please.

Removing sc_pwrcycle is incorrect; you should always protect against
spurious wakeups.

Also, why do you need the "cold" case?  AFAIK, there are no cases where
cards are powered up before interrupts are enabled.