From owner-freebsd-mobile@FreeBSD.ORG Mon Mar 28 11:47:48 2005 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C537C16A4D3; Mon, 28 Mar 2005 11:47:48 +0000 (GMT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 243F543D2D; Mon, 28 Mar 2005 11:47:48 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [10.1.1.7]) (authenticated bits=0)j2SBlcsf090483 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Mon, 28 Mar 2005 13:47:39 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id j2SBkZVK087144 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 28 Mar 2005 13:46:35 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.11/8.12.11) with ESMTP id j2SBkYPX027013; Mon, 28 Mar 2005 13:46:34 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id j2SBkYQQ027012; Mon, 28 Mar 2005 13:46:34 +0200 (CEST) (envelope-from ticso) Date: Mon, 28 Mar 2005 13:46:34 +0200 From: Bernd Walter To: Vladimir Grebenschikov Message-ID: <20050328114633.GZ14532@cicely12.cicely.de> References: <1110800717.1296.19.camel@localhost> <20050323205841.N37251@sasami.jurai.net> <77e48641fc04164b4c81cce75c42a38b@FreeBSD.org> <1111648302.3557.10.camel@localhost> <20050328111139.GY14532@cicely12.cicely.de> <1112009710.1022.19.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1112009710.1022.19.camel@localhost> X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.1 required=3.0 tests=BAYES_00,REMOVE_REMOVAL_NEAR autolearn=no version=2.64 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0003] * 0.8 REMOVE_REMOVAL_NEAR List removal information X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on cicely12.cicely.de cc: "current@freebsd.org" cc: "Matthew N. Dodd" cc: freebsd-mobile@freebsd.org cc: Julian Elischer cc: ticso@cicely.de cc: phk@freebsd.org Subject: Re: Reattach/redetect allways connected umass device - is it possible ? X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Mar 2005 11:47:48 -0000 On Mon, Mar 28, 2005 at 03:35:10PM +0400, Vladimir Grebenschikov wrote: > ? ??, 28/03/2005 ? 13:11 +0200, Bernd Walter ?????: > > > > > > Unfortunately, it seen as not-ejectable media. > > > > > > # camcontrol inquiry da0 > > > pass0: Removable Direct Access SCSI-0 device > > > pass0: Serial Number 3 > > > pass0: 40.000MB/s transfers > > > # > > > > It's _removeable_ direct access. > > oops, sorry. yes it is mentioned as removable. > > > Since this is a memory stick - I don't know how one could remove the > > flash media from the USB drive. > > Just mechanically. > > > But this device bug won't hurt as long as you can remove the drive. > > I can remove even mounted device. So it is not problem. So in fact it is a flash card reader? In that case removeable is correct. You shouldn't eject mounted media - FreeBSD locks mounted media, but since your device can't physically lock it... > Problem is that I should do something after replace card by another card > of different size to be able mount new card. Yes - as already mentioned on the list by diffrent people: cp /dev/null > /dev/da0 > camcontrol detach da0; camcontrol rescan all > helps, but, it should be much better if it will be issued automatically. Yes - GEOM seems to ignore media change signals from drives. I've added PHK to the recipient list - maybe he has an idea about this problem. However - lots of cheap flash card readers are to stupid for even that. You just can't rely on an automatic reread. > > > # usbdevs -v > > > ... > > > Controller /dev/usb3: > > > addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), > > > Intel(0x0000), rev 1.00 > > > 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 > > > port 6 powered > > > # > > > > > > I guess usb device should be removed on skick removal and back, but it > > > does not works :(. > > > > So you say that the device still exists after unplugging the USB stick? > > Yes. That shouldn't happen, unless you still have references to that device. Are you running with latest code? There were lots of ehci fixes lately. > > This is not the intended behavour. Is it still mounted when you unplug? > > No. (If be more exact it does not depends on mount state). > USB device never disappear. Probably it reflect real state, I guess, > card-reader itself hardwired to USB hub inside notebook and never > disconnected. > > Probably there is kind of disconnect notification on CAM level ? The first disconnect notification is from your root hub. The uhub driver then destroys the umass, which first destroys the scbus and so on. If one instance on the chain blocks the whole thing has to wait. -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de