Date: Tue, 19 Dec 2006 07:40:49 GMT From: Warner Losh <imp@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 111927 for review Message-ID: <200612190740.kBJ7en3H055569@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=111927 Change 111927 by imp@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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612190740.kBJ7en3H055569>