NetBSD Problem Report #43468

From www@NetBSD.org  Sun Jun 13 19:08:02 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id EF9CF63B952
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 13 Jun 2010 19:08:01 +0000 (UTC)
Message-Id: <20100613190801.9060063B93E@www.NetBSD.org>
Date: Sun, 13 Jun 2010 19:08:01 +0000 (UTC)
From: rawallis@panix.com
Reply-To: rawallis@panix.com
To: gnats-bugs@NetBSD.org
Subject: Add Sierra Wireless USB 305 Support to ugensa device
X-Send-Pr-Version: www-1.0

>Number:         43468
>Category:       kern
>Synopsis:       Add Sierra Wireless USB 305 Support to ugensa device
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 13 19:10:00 +0000 2010
>Closed-Date:    Mon Jun 14 19:07:25 +0000 2010
>Last-Modified:  Mon Jun 14 22:50:03 +0000 2010
>Originator:     Andy Wallis
>Release:        NetBSD-current (5.99.30)
>Organization:
N/A
>Environment:
NetBSD whitestar 5.99.30 NetBSD 5.99.30 (GENERIC) #0: Sat Jun 12 13:00:55 EDT 2010 root@whitestar:/usr/src/sys/arch/i386/compile/GENERIC i386
>Description:
NetBSD-current does not support the Sierra Wireless USB305 (aka AT&T USBConnect Lighting) USB dongle. It is a USB HSPDA serial device with a U3 CD image for driver installation. It is also a umass device with a port for mini-SDHC cards.
>How-To-Repeat:
In NetBSD-current, the device comes up as unconfigured. 
Currently, it will connect as u3ginit and announce that it is switching to 3G mode. After that, it will connect as a ugen device. 
>Fix:
The Sierra Wireless USB305 works as a ugensa device.  The USB ID is 0x68a3. I was able to connect to the AT&T HSPDA network by modifying the following files to add in the USB ID and use it as ugensa device.

u3g.c
ugensa.c
usbdevs


>Release-Note:

>Audit-Trail:
From: Jeff Rizzo <riz@tastylime.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/43468: Add Sierra Wireless USB 305 Support to ugensa device
Date: Sun, 13 Jun 2010 13:37:35 -0700

 >
 > In NetBSD-current, the device comes up as unconfigured.
 > Currently, it will connect as u3ginit and announce that it is switching to 3G mode. After that, it will connect as a ugen device.
 >    
 >> Fix:
 >>      
 > The Sierra Wireless USB305 works as a ugensa device.  The USB ID is 0x68a3. I was able to connect to the AT&T HSPDA network by modifying the following files to add in the USB ID and use it as ugensa device.
 >
 > u3g.c
 > ugensa.c
 > usbdevs
 >
 >    

 Can you provide the patches you used, or at least the USB ID?


From: Andy Wallis <rawallis@panix.com>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@netbsd.org,
 gnats-admin@netbsd.org,
 netbsd-bugs@netbsd.org
Subject: Re: kern/43468: Add Sierra Wireless USB 305 Support to ugensa device
Date: Sun, 13 Jun 2010 16:58:04 -0400

 On Jun 13, 2010, at 4:40 PM, Jeff Rizzo wrote:

 > Can you provide the patches you used, or at least the USB ID?

 The USB ID is 0x68a3.

 The following are diff -u outputs for each changed file. I put the =
 USB305 into the UNTESTED category for the test.=20

 --- u3g.c	2010-02-19 10:10:02.000000000 -0500
 +++ delta/u3g.c	2010-06-13 14:53:39.000000000 -0400
 @@ -238,6 +238,7 @@
 	{ USB_VENDOR_SIERRA, USB_PRODUCT_SIERRA_MC8775_2 },
 	{ USB_VENDOR_SIERRA, USB_PRODUCT_SIERRA_MC8780 },
 	{ USB_VENDOR_SIERRA, USB_PRODUCT_SIERRA_MC8781 },
 +	{ USB_VENDOR_SIERRA, USB_PRODUCT_SIERRA_USB305 },
 };

 static int

 --- ugensa.c	2010-06-13 16:48:35.000000000 -0400
 +++ delta/ugensa.c	2010-06-13 14:53:45.000000000 -0400
 @@ -108,6 +108,7 @@
 	{{ USB_VENDOR_QUALCOMM, USB_PRODUCT_QUALCOMM_MSM_HSDPA }, =
 UNTESTED },
 	{{ USB_VENDOR_SIERRA, USB_PRODUCT_SIERRA_EM5625 }, UNTESTED },
 	{{ USB_VENDOR_SIERRA, USB_PRODUCT_SIERRA_AIRCARD875 }, UNTESTED =
 },
 +	{{ USB_VENDOR_SIERRA, USB_PRODUCT_SIERRA_USB305 }, UNTESTED },
 };
 #define ugensa_lookup(v, p) \
 	((const struct ugensa_type *)usb_lookup(ugensa_devs, v, p))

 -- usbdevs     2010-06-12 22:33:54.000000000 -0400
 +++ delta/usbdevs       2010-06-13 14:53:50.000000000 -0400
 @@ -2192,6 +2159,7 @@
 +product SIERRA USB305          0x68a3  USB305

 -Andy Wallis

State-Changed-From-To: open->closed
State-Changed-By: riz@NetBSD.org
State-Changed-When: Mon, 14 Jun 2010 19:07:25 +0000
State-Changed-Why:
Added support, thanks!

I removed the "UNTESTED" bit, as the intention of that was to add support
for a device before anyone had tried on physical hardware.  Since
this has been, consider it tested for this purpose.


From: Jeff Rizzo <riz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/43468 CVS commit: src/sys/dev/usb
Date: Mon, 14 Jun 2010 19:05:24 +0000

 Module Name:	src
 Committed By:	riz
 Date:		Mon Jun 14 19:05:24 UTC 2010

 Modified Files:
 	src/sys/dev/usb: u3g.c ugensa.c

 Log Message:
 ugensa support for Sierra Wireless USB 305, from Andy Wallis
 in PR#43468 .


 To generate a diff of this commit:
 cvs rdiff -u -r1.11 -r1.12 src/sys/dev/usb/u3g.c
 cvs rdiff -u -r1.25 -r1.26 src/sys/dev/usb/ugensa.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Jeff Rizzo <riz@tastylime.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/43468: Add Sierra Wireless USB 305 Support to ugensa device
Date: Mon, 14 Jun 2010 12:19:23 -0700

 Of course, now that I've actually committed the change, I notice that 
 devices are supposed to be supported by *either* ugensa *or* u3g, so I 
 suspect it should be removed from ugensa entirely.

 Can you please send the relevant lines from your dmesg, so I can be certain?

 Thanks,
 +j

From: Andy Wallis <rawallis@panix.com>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@netbsd.org,
 gnats-admin@netbsd.org,
 netbsd-bugs@netbsd.org
Subject: Re: kern/43468: Add Sierra Wireless USB 305 Support to ugensa device
Date: Mon, 14 Jun 2010 18:49:51 -0400

 On Jun 14, 2010, at 3:30 PM, Jeff Rizzo wrote:

 > Of course, now that I've actually committed the change, I notice that=20=

 > devices are supposed to be supported by *either* ugensa *or* u3g, so I=20=

 > suspect it should be removed from ugensa entirely.
 >=20
 > Can you please send the relevant lines from your dmesg, so I can be =
 certain?

 These lines are from the June 10, 2010 -current ISO image

 u3ginit0 at uhub4 port 2: Switching to 3G mode
 u3ginit0: detached
 u3ginit0: at uhub4 port 2 (addr 2) disconnected
 ....
 ugen0 at uhub4 port 2
 ugen0: Sierra Wireless Inc. USB 305, rev 2.00/0.06, addr 2


 After applying my internal patches in both places.
 u3ginit0 at uhub4 port 2: Switching to 3G mode
 u3ginit0: detached
 u3ginit0: at uhub4 port 2 (addr 2) disconnected
 ....
 ugensa0 at uhub4 port 2
 ugensa0: Sierra Wireless Inc. USB 305, rev 2.00/0.06, addr 2
 ugensa0: WARNING: This device is marked as untested. Please submit a =
 report via send-pr(1).
 ugensa0: unexpected endpoint
 ucom0 at ugensa0: Generic Serial Device

 Should I go ahead and do a CVS update to check out your new code?

 -Andy Wallis

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.