Subject: Re: bug in cbb power reactivation (patch)
To: None <tech-kern@netbsd.org>
From: Ignatios Souvatzis <is@netbsd.org>
List: tech-kern
Date: 04/18/2006 14:01:19
On Sun, Apr 16, 2006 at 10:55:41PM -0500, David Young wrote:
> Digging deeper, I found a bug in pccbb_power(). After pccbb_power()
> [...]
Now that you've mentioned pccbb:
I've needed - up to and including 3.0 - this hack to access a 16bit WLAN
card (Siemens, standard el cheapo "wi" chipset). Maybe somebody knows
what to do to fix the problem?
(Sorry - the laptop in question is only very occasionally here, and only
for a few days at a time.)
Regards,
-is
Index: pccbb.c
===================================================================
RCS file: /cvsroot/src/sys/dev/pci/pccbb.c,v
retrieving revision 1.117.2.1
diff -u -r1.117.2.1 pccbb.c
--- pccbb.c 27 Mar 2005 16:33:48 -0000 1.117.2.1
+++ pccbb.c 18 Apr 2006 12:00:40 -0000
@@ -1374,6 +1374,11 @@
if ((error = tsleep(&sc->sc_pwrcycle, PWAIT, "pccpwr",
hz / 5)) == EWOULDBLOCK)
break;
+ if (pwrcycle == sc->sc_pwrcycle) {
+ printf("%s: XXX assuming to have powerd up\n",
+ sc->sc_dev.dv_xname);
+ ++sc->sc_pwrcycle;
+ }
}
splx(s);
microtime(&after);
--
seal your e-mail: http://www.gnupg.org/