From owner-freebsd-usb@FreeBSD.ORG Wed Jan 9 15:33:35 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 5D906181 for ; Wed, 9 Jan 2013 15:33:35 +0000 (UTC) (envelope-from Lowell@Be-Well.Ilk.Org) Received: from asbnvacz-mailrelay01.megapath.net (asbnvacz-mailrelay01.megapath.net [207.145.128.243]) by mx1.freebsd.org (Postfix) with ESMTP id 2763D8EF for ; Wed, 9 Jan 2013 15:33:34 +0000 (UTC) Received: from mail3.sea5.speakeasy.net (mail3.sea5.speakeasy.net [69.17.117.42]) by asbnvacz-mailrelay01.megapath.net (Postfix) with ESMTP id 23A18A71310 for ; Wed, 9 Jan 2013 10:33:34 -0500 (EST) Received: (qmail 16071 invoked from network); 9 Jan 2013 15:33:33 -0000 Received: by simscan 1.4.0 ppid: 2420, pid: 8318, t: 0.1884s scanners: clamav: 0.88.2/m:52/d:10739 Received: from unknown (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail3.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 9 Jan 2013 15:33:33 -0000 Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.8]) by be-well.ilk.org (Postfix) with ESMTP id 06F1D33C32; Wed, 9 Jan 2013 10:33:27 -0500 (EST) Received: by lowell-desk.lan (Postfix, from userid 1147) id 5C55039855; Wed, 9 Jan 2013 10:33:27 -0500 (EST) From: Lowell Gilbert To: Hans Petter Selasky Subject: Re: auto-dismount fake CD (was Re: Android device problems with MTP ID) References: <44d2xmrrfp.fsf@lowell-desk.lan> <201301032104.54225.hselasky@c2i.net> <4438ygbplz.fsf_-_@be-well.ilk.org> <201301042242.30325.hselasky@c2i.net> Date: Wed, 09 Jan 2013 10:33:27 -0500 In-Reply-To: <201301042242.30325.hselasky@c2i.net> (Hans Petter Selasky's message of "Fri, 4 Jan 2013 22:42:30 +0100") Message-ID: <44wqvmv0ag.fsf@lowell-desk.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jan 2013 15:33:35 -0000 Hans Petter Selasky writes: > See the serial/u3g.c driver and usb/usb_msctest.c and look for SCSI EJECT. Thanks again! I had checked usb and cam directories, but I didn't think to check in serial. This is the first time I ran into such a device, and I wouldn't have guessed that modems were doing it first. I could submit a patch now, but I told a few other people I'd include their devices, so I'll wait a few days. Also, it seems desirable that the eject functionality should be refactored out of the u3g loading, so that other people can find it. At any rate, this works for me: Index: sys/dev/usb/serial/u3g.c =================================================================== --- sys/dev/usb/serial/u3g.c (revision 245177) +++ sys/dev/usb/serial/u3g.c (working copy) @@ -555,6 +555,7 @@ U3G_DEV(YISO, C893, 0), /* Autoinstallers */ U3G_DEV(NOVATEL, ZEROCD, U3GINIT_SCSIEJECT), + U3G_DEV(MOTOROLA2, MB886, U3GINIT_SCSIEJECT), U3G_DEV(OPTION, GTICON322, U3GINIT_REZERO), U3G_DEV(QUALCOMMINC, ZTE_STOR, U3GINIT_ZTESTOR), U3G_DEV(QUALCOMMINC, ZTE_STOR2, U3GINIT_SCSIEJECT), Index: sys/dev/usb/usbdevs =================================================================== --- sys/dev/usb/usbdevs (revision 245177) +++ sys/dev/usb/usbdevs (working copy) @@ -2930,6 +2930,7 @@ /* Motorola products */ product MOTOROLA MC141555 0x1555 MC141555 hub controller product MOTOROLA SB4100 0x4100 SB4100 USB Cable Modem +product MOTOROLA2 MB886 0x710f MB886 Mobile Phone (Atria HD) product MOTOROLA2 T720C 0x2822 T720c product MOTOROLA2 A41XV32X 0x2a22 A41x/V32x Mobile Phones product MOTOROLA2 E398 0x4810 E398 Mobile Phone