From owner-freebsd-current@FreeBSD.ORG Wed Mar 23 19:37:08 2005 Return-Path: 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 3793416A4CF for ; Wed, 23 Mar 2005 19:37:08 +0000 (GMT) Received: from mail23.sea5.speakeasy.net (mail23.sea5.speakeasy.net [69.17.117.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id B457C43D6D for ; Wed, 23 Mar 2005 19:37:07 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 26748 invoked from network); 23 Mar 2005 19:37:07 -0000 Received: from server.baldwin.cx ([216.27.160.63]) (envelope-sender )AES256-SHA encrypted SMTP for ; 23 Mar 2005 19:37:06 -0000 Received: from [10.50.41.231] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id j2NJavah063392; Wed, 23 Mar 2005 14:36:58 -0500 (EST) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-mobile@FreeBSD.org, vova@fbsd.ru Date: Wed, 23 Mar 2005 14:11:46 -0500 User-Agent: KMail/1.6.2 References: <1110800717.1296.19.camel@localhost> In-Reply-To: <1110800717.1296.19.camel@localhost> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200503231411.46948.jhb@FreeBSD.org> X-Spam-Status: No, score=-102.8 required=4.2 tests=ALL_TRUSTED, USER_IN_WHITELIST autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx cc: "current@freebsd.org" Subject: Re: Reattach/redetect allways connected umass device - is it possible ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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, 23 Mar 2005 19:37:08 -0000 On Monday 14 March 2005 06:45 am, Vladimir Grebenschikov wrote: > Hi > > I have SONY notebook with integrated memory stick card reader. It > appears as USB umass device and works well. > > Usbdevs output is here: > Controller /dev/usb3: > addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), > Intel(0x0000), rev 1.00, device uhub4 port 1 powered > port 2 powered > port 3 powered > port 4 powered > port 5 addr 2: high speed, self powered, config 1, USB Memory Stick > Slot(0x014d), Sony(0x054c), rev 1.10, device umass1 port 6 powered > > Only problem is that card-reader itself toes not detach USB device on flash > removal. So if I change card to another card of different size it is not > detected and da0 device still has old geometry. > > 'camcontrol rescan' does not helps. > > For previous Sony notebook stick reader was attached to ATA bus and I > workaround this problem with atacontrol detach/attach. > > How to do same with USB-attached umass device, I mean how to rescan this > device for physical geometry. > > I found only solution - kldunload umass && kldload umass, but it is ugly. > And can be problem in case when another umass device connected. Have you tried doing a 'camcontrol eject da0', swapping out the sticks and then seeing if da0 comes back with new geometry? Possibly doing a 'camcontrol rescan' to force it to see the new stick? -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org