Powering down 16-bit wi(4) PC Card is broken for me

M. Warner Losh imp at bsdimp.com
Tue Sep 27 20:47:51 PDT 2005

In message: <20050923085358.GA58772 at ip.net.ua>
            Ruslan Ermilov <ru at FreeBSD.org> writes:
: This is with today's -CURRENT, but it's been happening for some time
: now I guess.
: I have two PC Cards, one 32-bit 3.3V rl(4), and one 16-bit 5V wi(4).
: And it looks there's a problem with powering down the wi(4) card.
: Ejecting/injecting rl(4) works as expected.  But first time I eject
: wi(4), it fails (Bad Vcc requested).  After this happens, I can no
: longer use this slot -- "Bad Vcc requested" is printed during each
: ejection/injection, and I get "watchdog timeout" with rl(4).


Thanks for working with me offline.  I believe that the following
should fix things up for you.  Can you try the following patch?


==== //depot/user/imp/newcard/dev/pccbb/pccbb.c#125 (text+ko) ====

@@ -1269,12 +1269,12 @@
-	/* reset signal asserting... */
-	exca_clrb(&sc->exca[0], EXCA_INTR, EXCA_INTR_RESET);
+	/* Turn off the card's interrupt and leave it in reset */
+	exca_putb(&sc->exca[0], EXCA_INTR, 0);
 	tsleep(sc, PZERO, "cbbP1", hz / 100);
 	/* power down the socket */
-	exca_clrb(&sc->exca[0], EXCA_PWRCTL, EXCA_PWRCTL_OE);
+	exca_putb(&sc->exca[0], EXCA_PWRCTL, 0);
 	cbb_power(brdev, CARD_OFF);
 	/* wait 300ms until power fails (Tpf). */

More information about the freebsd-current mailing list