PERFORCE change 111927 for review

Warner Losh imp at FreeBSD.org
Mon Dec 18 23:40:57 PST 2006


http://perforce.freebsd.org/chv.cgi?CH=111927

Change 111927 by imp at imp_lighthouse on 2006/12/19 07:39:51

	Unwisely touch this file: add debugging code to gather more data on
	a condition I see far too often.  I fear I'll have to implement COR
	reset to properly fix this.  Basically, the firmware goes out to
	lunch, we set 'gone' but then bad things happen from there...

Affected files ...

.. //depot/projects/arm/src/sys/dev/wi/if_wi.c#10 edit

Differences ...

==== //depot/projects/arm/src/sys/dev/wi/if_wi.c#10 (text+ko) ====

@@ -850,6 +850,7 @@
 {
 	struct wi_softc *sc = ifp->if_softc;
 	struct ieee80211com *ic = &sc->sc_ic;
+	int error;
 
 	WI_LOCK(sc);
 
@@ -858,7 +859,10 @@
 	ieee80211_new_state(ic, IEEE80211_S_INIT, -1);
 	if (sc->sc_enabled && !sc->wi_gone) {
 		CSR_WRITE_2(sc, WI_INT_EN, 0);
-		wi_cmd(sc, WI_CMD_DISABLE | sc->sc_portnum, 0, 0, 0);
+		error = wi_cmd(sc, WI_CMD_DISABLE | sc->sc_portnum, 0, 0, 0);
+		if (error)
+			printf("wi_stop's DISABLE returned %d disable %d\n",
+			    error, disable);
 		if (disable) {
 #ifdef __NetBSD__
 			if (sc->sc_disable)


More information about the p4-projects mailing list