Date: Wed, 09 Jan 2013 10:33:27 -0500 From: Lowell Gilbert <Lgfbsd@be-well.ilk.org> To: Hans Petter Selasky <hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: auto-dismount fake CD (was Re: Android device problems with MTP ID) Message-ID: <44wqvmv0ag.fsf@lowell-desk.lan> In-Reply-To: <201301042242.30325.hselasky@c2i.net> (Hans Petter Selasky's message of "Fri, 4 Jan 2013 22:42:30 %2B0100") References: <44d2xmrrfp.fsf@lowell-desk.lan> <201301032104.54225.hselasky@c2i.net> <4438ygbplz.fsf_-_@be-well.ilk.org> <201301042242.30325.hselasky@c2i.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Hans Petter Selasky <hselasky@c2i.net> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44wqvmv0ag.fsf>