Date: Mon, 14 Mar 2005 13:51:28 -0500 From: Anish Mistry <mistry.7@osu.edu> To: vova@fbsd.ru Cc: "freebsd-current@freebsd.org" <freebsd-current@freebsd.org> Subject: Re: Reattach/redetect allways connected umass device - is it possible ? Message-ID: <200503141351.38106.mistry.7@osu.edu> In-Reply-To: <1110800717.1296.19.camel@localhost> References: <1110800717.1296.19.camel@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200503141351.38106.mistry.7>