From owner-freebsd-usb@FreeBSD.ORG Sat Aug 20 15:46:44 2011 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 EE277106564A for ; Sat, 20 Aug 2011 15:46:44 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.c2i.net [212.247.154.34]) by mx1.freebsd.org (Postfix) with ESMTP id 728218FC0A for ; Sat, 20 Aug 2011 15:46:44 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=xmFjUGIb0+Qtkw36JMBkZ4MjFvRoLuHFC3dFHsXsG5g= c=1 sm=1 a=SvYTsOw2Z4kA:10 a=jC7VuaC2Ft0A:10 a=WQU8e4WWZSUA:10 a=Q9fys5e9bTEA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=8kQB0OdkAAAA:8 a=6I5d2MoRAAAA:8 a=aSqzoybuAAAA:8 a=sMv46CJ-z1ebAyoNIBQA:9 a=jFG0PI62fyH7MuGTcQkA:7 a=PUjeQqilurYA:10 a=la2EVL20DFMA:10 a=9aOQ2cSd83gA:10 a=SV7veod9ZcQA:10 a=h97PluesjcLegxRM:21 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe02.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 168807010; Sat, 20 Aug 2011 17:46:39 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org, "Poul-Henning Kamp" Date: Sat, 20 Aug 2011 17:44:11 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; amd64; ; ) References: <201108201430.p7KEUHXN043843@freefall.freebsd.org> In-Reply-To: <201108201430.p7KEUHXN043843@freefall.freebsd.org> X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq, NwSZ4V"|LR.+tj}g5 %V,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( :AuzV9:.hESm-x4h240C`9=w MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201108201744.11986.hselasky@c2i.net> Cc: Subject: Re: usb/159919: Patch for HUAWEI E173 (u3g/umodem) 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: Sat, 20 Aug 2011 15:46:45 -0000 On Saturday 20 August 2011 16:30:17 Poul-Henning Kamp wrote: > The following reply was made to PR usb/159919; it has been noted by GNATS. > > From: "Poul-Henning Kamp" > To: Hans Petter Selasky > Cc: freebsd-usb@freebsd.org, FreeBSD-gnats-submit@freebsd.org > Subject: Re: usb/159919: Patch for HUAWEI E173 (u3g/umodem) > Date: Sat, 20 Aug 2011 14:07:25 +0000 > > In message <201108201555.04355.hselasky@c2i.net>, Hans Petter Selasky writes: > >On Friday 19 August 2011 18:01:29 Poul-Henning Kamp wrote: > >> With this patch I can get a Huawei E173 3G dongle to work. > >> I'm not sure why I have to teach umodem about it specifically. > >> It comes up as /dev/cuaU[012] rather than /dev/cuaU0.[012] > > > >Hi, > > > >What happens if you leave out the u3g.c patch? > > > >Could you post dmesg and output from: > > > >usbconfig -d X.Y dump_device_desc dump_curr_config_desc show_ifdrv > > Dang, I should have thought of including that. > > It's too late now the E173 just passed through my lab for a few > hours and it probably won't be back in the forseeable future. > > Without any patches it comes up with the E173_INIT product-id and > da0/cd0 attaches. > > The HUAWEI_INIT mode just hangs the device, nothing happens or > attaches afterwards. > > With the HUAWEI_INITSCSI it disaspears, then comes back with the E173 > product-id, da0/cd0 attaches, but umodem for some reason does not. > > The patch makes umodem find it, but as three separate devices, > not as one device with three subdevices. I found a descriptor dump here: http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?t=552 I see now why the u3g.c driver is not attaching, because "bDeviceClass = 0" and we expect 0xFF. Nick, do you have any comments on this? PHK: Are you on #bsdusb on EF-net? --HPS