From owner-freebsd-usb@FreeBSD.ORG Wed May 14 20:16:15 2008 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 A0CC5106567C for ; Wed, 14 May 2008 20:16:15 +0000 (UTC) (envelope-from sclark@netwolves.com) Received: from elasmtp-dupuy.atl.sa.earthlink.net (elasmtp-dupuy.atl.sa.earthlink.net [209.86.89.62]) by mx1.freebsd.org (Postfix) with ESMTP id 79E508FC34 for ; Wed, 14 May 2008 20:16:15 +0000 (UTC) (envelope-from sclark@netwolves.com) Received: from [205.201.149.100] (helo=[10.0.129.1]) by elasmtp-dupuy.atl.sa.earthlink.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1JwNOY-0002t8-VY; Wed, 14 May 2008 16:16:15 -0400 Message-ID: <482B488D.1020704@netwolves.com> Date: Wed, 14 May 2008 16:16:13 -0400 From: Steve Clark User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.13) Gecko/20080425 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Hans Petter Selasky References: <4828AA64.7060306@netwolves.com> <200805141739.48185.hselasky@c2i.net> <482B1E6B.3070309@netwolves.com> <200805142147.06261.hselasky@c2i.net> In-Reply-To: <200805142147.06261.hselasky@c2i.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-ELNK-Trace: a437fbc6971e80f61aa676d7e74259b7b3291a7d08dfec7992e8c6e138d65aac04b118c606c94d08350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 205.201.149.100 Cc: freebsd-usb@freebsd.org Subject: Re: In on control endpoint 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: Wed, 14 May 2008 20:16:15 -0000 Hans Petter Selasky wrote: > Hi Steve, > > Try this: > > static void > ubsa_sierra_unlock(struct usbd_device *udev) > { > usb_device_request_t req; > > req.bmRequestType = UT_WRITE_VENDOR_DEVICE; > req.bRequest = 0x0b; > USETW(req.wValue, 0x0001); > req.wIndex[0] = 0; > req.wIndex[1] = 0; > USETW(req.wLength, 0); > > if (usbd_do_request_flags > (udev, NULL, &req, NULL, 0, NULL, 1000)) { > /* ignore any errors */ > } > return; > } > > static int > ubsa_probe(device_t dev) > { > struct usb_attach_arg *uaa = device_get_ivars(dev); > const struct ubsa_product *up = ubsa_products; > > if (uaa->usb_mode != USB_MODE_HOST) { > return (UMATCH_NONE); > } > if (uaa->iface) { > return (UMATCH_NONE); > } > if ( uaa->vendor == USB_VENDOR_SIERRA && uaa->product == 0xfff ) > { > ubsa_sierra_unlock(uaa->device); > return (UMATCH_NONE); > } > while (up->vendor) { > if ((up->vendor == uaa->vendor) && > (up->product == uaa->product)) { > return (UMATCH_VENDOR_PRODUCT); > } > up++; > } > return (UMATCH_NONE); > } > > If it works, maybe you can send a complete patch including those entries you > added to usbdevs ? > > --HPS > > Hi Hans, I am using the modem right now!!!! As soon as I am satisfied that it is working reliably I'll gladly send along the patches. Thanks again, Steve