From owner-freebsd-current@FreeBSD.ORG Mon Mar 14 18:47:22 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 41C0216A4CE for ; Mon, 14 Mar 2005 18:47:22 +0000 (GMT) Received: from crumpet.united-ware.com (ddsl-66-42-172-210.fuse.net [66.42.172.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE9F543D53 for ; Mon, 14 Mar 2005 18:47:21 +0000 (GMT) (envelope-from mistry.7@osu.edu) Received: from [192.168.1.100] (adsl-68-252-59-28.dsl.wotnoh.ameritech.net [68.252.59.28]) (authenticated bits=0)j2EII6lu007448 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Mon, 14 Mar 2005 13:18:07 -0500 (EST) (envelope-from mistry.7@osu.edu) From: Anish Mistry To: vova@fbsd.ru Date: Mon, 14 Mar 2005 13:51:28 -0500 User-Agent: KMail/1.7 References: <1110800717.1296.19.camel@localhost> In-Reply-To: <1110800717.1296.19.camel@localhost> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart16656948.qrOPh2hQO2"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200503141351.38106.mistry.7@osu.edu> X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.64 X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on crumpet.united-ware.com cc: "freebsd-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: Mon, 14 Mar 2005 18:47:22 -0000 --nextPart16656948.qrOPh2hQO2 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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. Does this help? cat /dev/null > /dev/da0 =2D-=20 Anish Mistry --nextPart16656948.qrOPh2hQO2 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCNd06xqA5ziudZT0RAmfxAJoD2bP5G5wsN0R9tz2xD7n4CAPMUwCffJ2k HxXFCFDDMrrdRsWDJli8YZA= =aF+r -----END PGP SIGNATURE----- --nextPart16656948.qrOPh2hQO2--