From owner-freebsd-mobile@FreeBSD.ORG Mon Mar 14 16:22:51 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 7632A16A4CE; Mon, 14 Mar 2005 16:22:51 +0000 (GMT) Received: from vbook.fbsd.ru (user145.hovrino.net [82.179.232.145]) by mx1.FreeBSD.org (Postfix) with ESMTP id 04C1743D55; Mon, 14 Mar 2005 16:22:51 +0000 (GMT) (envelope-from vova@vbook.fbsd.ru) Received: from vova by vbook.fbsd.ru with local (Exim 4.50 (FreeBSD)) id 1DAo0c-000NGE-1g; Mon, 14 Mar 2005 14:45:18 +0300 From: Vladimir Grebenschikov To: mobile@freebsd.org Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: SWsoft Date: Mon, 14 Mar 2005 14:45:17 +0300 Message-Id: <1110800717.1296.19.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.1.5 FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov cc: "current@freebsd.org" Subject: 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: vova@fbsd.ru List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2005 16:22:51 -0000 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. -- Vladimir B. Grebenchikov vova@fbsd.ru