From owner-freebsd-hardware@FreeBSD.ORG Wed Oct 8 09:46:21 2008 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EF02C1065694 for ; Wed, 8 Oct 2008 09:46:21 +0000 (UTC) (envelope-from nick@van-laarhoven.org) Received: from cpsmtpo-eml04.kpnxchange.com (cpsmtpo-eml04.KPNXCHANGE.COM [213.75.38.153]) by mx1.freebsd.org (Postfix) with ESMTP id 7FE4D8FC1F for ; Wed, 8 Oct 2008 09:46:21 +0000 (UTC) (envelope-from nick@van-laarhoven.org) Received: from hpsmtp-eml04.kpnxchange.com ([213.75.38.104]) by cpsmtpo-eml04.kpnxchange.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 8 Oct 2008 11:46:20 +0200 Received: from uitsmijter.van-laarhoven.org ([81.207.207.222]) by hpsmtp-eml04.kpnxchange.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 8 Oct 2008 11:46:19 +0200 Received: (qmail 48815 invoked by uid 98); 8 Oct 2008 09:46:19 -0000 Received: from 132.229.99.21 (nick@132.229.99.21) by uitsmijter.van-laarhoven.org (envelope-from , uid 82) with qmail-scanner-2.01 (clamdscan: 0.92/5270. f-prot: 4.6.7/3.16.15. spamassassin: 3.2.3. Clear:RC:0(132.229.99.21):SA:0(-10.9/5.0):. Processed in 4.439849 secs); 08 Oct 2008 09:46:19 -0000 X-Spam-Status: No, score=-10.9 required=5.0 X-Spam-Level: Received: from unknown (HELO van-laarhoven.org) (nick@132.229.99.21) by uitsmijter.van-laarhoven.org with SMTP; 8 Oct 2008 09:46:14 -0000 Received: (nullmailer pid 3382 invoked by uid 1001); Wed, 08 Oct 2008 09:46:13 -0000 From: Nick Hibma To: Nicolai Petri Date: Wed, 8 Oct 2008 11:46:12 +0200 User-Agent: KMail/1.9.7 References: <48EC7785.8030303@catpipe.net> In-Reply-To: <48EC7785.8030303@catpipe.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200810081146.13435.nick@van-laarhoven.org> X-OriginalArrivalTime: 08 Oct 2008 09:46:19.0548 (UTC) FILETIME=[B72F85C0:01C9292A] Cc: freebsd-hardware@freebsd.org Subject: Re: Problem / question about u3g driver X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Oct 2008 09:46:22 -0000 I'll look into your question on the config descriptor index. I'm not sure which device we have to test, but I will get back to you for testing. Wrt to current: I have not yet done any porting of the driver there so I don't know why you have problems. I will do so hopefully this week so I can commit the driver and MFC shortly afterwards. Be patient. My time for FBSD work is limited. None of this is rocket science, so it will get there in time. For now you have your patched ubsa driver in any case. Thanks for the testing! Nick > Hi, > > PHK pointed me to the u3g driver on your site. I did a quick test on > -current which wasn't that successful. > > To make a bit of context I made a patch for ubsa.c which allows my > Huawei E220 usb device to work (it's based on phk's latest commit to > -current) > > This part works great - but what I found out during my investigation was > that according to atleast netbsd it's an error to use 1 as config_index. > It should be 0. > This removes my configure "STALLED" messages and makes the device attach > proberly (after the reprobe). So my questions is if you know > what is the correct index - I can see that the u3g driver uses 1 as > config index but what i fear is that this is actually > different for different devices. > > I hope you can shed some light on this. > > Back to my testing of the u3g driver on current with the E220 adapter I > get instant crash when attach fails - I'll do a backtrace later but my > best bet is that it's the config index that needs to be changed. > > I'll look forward to hearing from you. > > Cheers, > Nicolai Petri > > Ps. I have made a patch for freebsd-stable which makes huawei devices > work - only thing I'm puzzled about is the change of config index from 1 > to 0. It can be found here : > http://hobbes.bsd-dk.dk/~npp/ubsa.patch-stable