Date: Mon, 30 Aug 2010 08:05:32 +1200 From: Matthew Luckie <mjl@luckie.org.nz> To: Hans Petter Selasky <hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: ZTE USB 3g stick Message-ID: <4C7ABD8C.90209@luckie.org.nz> In-Reply-To: <201008291341.11379.hselasky@c2i.net> References: <4C789A4E.9030409@luckie.org.nz> <201008280950.35903.hselasky@c2i.net> <4C78F7D7.7010507@luckie.org.nz> <201008291341.11379.hselasky@c2i.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> Hi,
>
> Possibly we need to add some code to check when the autoinstall system is
> ready for receiving the command. What happens if you try to add a delay before
> executing the eject command:
>
> --- src/sys/dev/usb/usb_msctest.c 2010-03-08 16:57:53.000000000 0000
> +++ src/sys/dev/usb/usb_msctest.c 2010-03-08 16:57:53.000000000 0000
> @@ -588,6 +588,8 @@
> if (sc == NULL)
> return (USB_ERR_INVAL);
>
> + pause("WAIT", hz);
> +
> err = 0;
> switch (method) {
> case MSC_EJECT_STOPUNIT:
this didn't alter the original behaviour. btw, its a K3565-Z, and i
found out what device this looks like when the config has been set to
zero and the cdrom ejected:
[mjl@mylar mjl]$ sudo usbconfig -d 6.2 dump_device_desc
ugen6.2: <ZTE CDMA Technologies MSM ZTE,Incorporated> at usbus6, cfg=0
md=HOST spd=HIGH (480Mbps) pwr=ON
bLength = 0x0012
bDescriptorType = 0x0001
bcdUSB = 0x0200
bDeviceClass = 0x0000
bDeviceSubClass = 0x0000
bDeviceProtocol = 0x0000
bMaxPacketSize0 = 0x0040
idVendor = 0x19d2
idProduct = 0x0063
bcdDevice = 0x0000
iManufacturer = 0x0002 <ZTE,Incorporated>
iProduct = 0x0001 <ZTE CDMA Technologies MSM>
iSerialNumber = 0x0000 <no string>
bNumConfigurations = 0x0001
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C7ABD8C.90209>
