From owner-freebsd-usb@FreeBSD.ORG Sun Aug 29 20:05:36 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 87488106566B for ; Sun, 29 Aug 2010 20:05:36 +0000 (UTC) (envelope-from mjl@luckie.org.nz) Received: from mailfilter6.ihug.co.nz (mailfilter6.ihug.co.nz [203.109.136.6]) by mx1.freebsd.org (Postfix) with ESMTP id 302958FC25 for ; Sun, 29 Aug 2010 20:05:35 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAA5aekx2XQvW/2dsb2JhbACgSHK5NoU3BIoJhxM X-IronPort-AV: E=Sophos;i="4.56,288,1280664000"; d="scan'208";a="12664080" Received: from 118-93-11-214.dsl.dyn.ihug.co.nz (HELO spandex.luckie.org.nz) ([118.93.11.214]) by cust.filter6.content.vf.net.nz with ESMTP/TLS/DHE-RSA-AES256-SHA; 30 Aug 2010 08:05:33 +1200 Received: from mylar.luckie.org.nz ([192.168.1.24]) by spandex.luckie.org.nz with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.72 (FreeBSD)) (envelope-from ) id 1Opo8C-0000W2-F9; Mon, 30 Aug 2010 08:05:32 +1200 Message-ID: <4C7ABD8C.90209@luckie.org.nz> Date: Mon, 30 Aug 2010 08:05:32 +1200 From: Matthew Luckie User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.8) Gecko/20100814 Thunderbird/3.1.2 MIME-Version: 1.0 To: Hans Petter Selasky References: <4C789A4E.9030409@luckie.org.nz> <201008280950.35903.hselasky@c2i.net> <4C78F7D7.7010507@luckie.org.nz> <201008291341.11379.hselasky@c2i.net> In-Reply-To: <201008291341.11379.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: ZTE USB 3g stick X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Aug 2010 20:05:36 -0000 > 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: 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 iProduct = 0x0001 iSerialNumber = 0x0000 bNumConfigurations = 0x0001