From owner-freebsd-current@FreeBSD.ORG Wed Sep 28 05:52:52 2005 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5A8B516A420 for ; Wed, 28 Sep 2005 05:52:52 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7373443D4C for ; Wed, 28 Sep 2005 05:52:50 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id j8S5qdoL050589; Wed, 28 Sep 2005 08:52:39 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 19467-03-3; Wed, 28 Sep 2005 08:52:35 +0300 (EEST) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id j8S5o2mx050462 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 28 Sep 2005 08:50:02 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.3/8.13.3) id j8S5oLuj027996; Wed, 28 Sep 2005 08:50:21 +0300 (EEST) (envelope-from ru) Date: Wed, 28 Sep 2005 08:50:21 +0300 From: Ruslan Ermilov To: "M. Warner Losh" Message-ID: <20050928055021.GC55560@ip.net.ua> References: <20050923085358.GA58772@ip.net.ua> <20050927.214608.119243251.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YD3LsXFS42OYHhNZ" Content-Disposition: inline In-Reply-To: <20050927.214608.119243251.imp@bsdimp.com> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at ip.net.ua Cc: current@freebsd.org Subject: Re: Powering down 16-bit wi(4) PC Card is broken for me X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2005 05:52:52 -0000 --YD3LsXFS42OYHhNZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Warner, On Tue, Sep 27, 2005 at 09:46:08PM -0600, M. Warner Losh wrote: > Ruslan, >=20 > Thanks for working with me offline. I believe that the following > should fix things up for you. Can you try the following patch? >=20 No, it doesn't. :-( Like in the previous try, the slot becomes deaf once I eject the 16-bit PC Card. Here's the relevant console log: Injecting cardbus: : Status is 0x30000920 : cbb0: card inserted: event=3D0x00000006, state=3D30000920 : cbb0: cbb_power: 3V : rl0: port 0x1000-0x10ff mem 0xd8000-0xd81ff ir= q 11 at device 0.0 on cardbus0 : miibus0: on rl0 : rlphy0: on miibus0 : rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto : rl0: Ethernet address: 00:11:6b:50:03:82 Ejecting cardbus: : Status is 0x30000186 : rlphy0: detached : miibus0: detached : rl0: detached : cbb0: cbb_power: 0V Injecting pccard: : Status is 0x30000510 : cbb0: card inserted: event=3D0x00000000, state=3D30000510 : cbb_pcic_socket_enable: : cbb0: cbb_power: 5V : cbb_pcic_socket_enable: : wi0: at port 0x100-0x13f irq 11 functi= on 0 config 1 on pccard0 : wi0: using Lucent Technologies, WaveLAN/IEEE : wi0: Lucent Firmware: Station (6.6.1) : wi0: Ethernet address: 00:02:2d:09:40:19 Ejecting pccard: : Status is 0x30000116 : wi0: detached : cbb_pcic_socket_disable Note there's no "0V" indication now. At this point, the slot becomes deaf. > =3D=3D=3D=3D //depot/user/imp/newcard/dev/pccbb/pccbb.c#125 (text+ko) =3D= =3D=3D=3D >=20 > @@ -1269,12 +1269,12 @@ > =20 > DPRINTF(("cbb_pcic_socket_disable\n")); > =20 > - /* 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); > =20 > /* 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); > =20 > /* wait 300ms until power fails (Tpf). */ Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --YD3LsXFS42OYHhNZ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFDOi8dqRfpzJluFF4RAsO7AJ0Qtm+peOC+7NkKjqNlvXspulxGCwCbBosZ qn4jnaZ06iTIPXZgRGhhYa8= =jmNV -----END PGP SIGNATURE----- --YD3LsXFS42OYHhNZ--