Hans Petter Selasky <hsela...@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
_______________________________________________
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"

Reply via email to