From fredde@biocandy.shapeshifter.se  Sun May  9 05:54:16 2004
Return-Path: <fredde@biocandy.shapeshifter.se>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 1851316A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  9 May 2004 05:54:16 -0700 (PDT)
Received: from mail.hamnpolare.net (hamnpolare.net [217.8.33.27])
	by mx1.FreeBSD.org (Postfix) with ESMTP id B34CF43D31
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  9 May 2004 05:54:14 -0700 (PDT)
	(envelope-from fredde@biocandy.shapeshifter.se)
Received: from localhost (localhost [127.0.0.1])
	by mail.hamnpolare.net (Postfix) with ESMTP id E051C1A6CA
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  9 May 2004 14:54:12 +0200 (CEST)
Received: from mail.hamnpolare.net ([127.0.0.1])
 by localhost (hamnpolare.net [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 06444-08 for <FreeBSD-gnats-submit@freebsd.org>;
 Sun,  9 May 2004 14:54:11 +0200 (CEST)
Received: from biocandy.shapeshifter.se (h125n2fls31o270.telia.com [217.208.199.125])
	by mail.hamnpolare.net (Postfix) with ESMTP id 1FD0B1A6C4
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  9 May 2004 14:54:03 +0200 (CEST)
Received: by biocandy.shapeshifter.se (Postfix, from userid 1001)
	id CEF8CFA; Sun,  9 May 2004 14:54:02 +0200 (CEST)
Message-Id: <20040509125402.CEF8CFA@biocandy.shapeshifter.se>
Date: Sun,  9 May 2004 14:54:02 +0200 (CEST)
From: Fredrik Lindberg <fliREMOVEME@shapeshifter.se>
Reply-To: Fredrik <fliREMOVEME@shapeshifter.se>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Susteen USB Data Cable not identified as ucom(4) device 
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         66416
>Category:       kern
>Synopsis:       Susteen USB Data Cable not identified as ucom(4) device
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    sanpei
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 09 06:00:40 PDT 2004
>Closed-Date:    Wed Aug 18 03:29:39 GMT 2004
>Last-Modified:  Wed Aug 18 03:29:39 GMT 2004
>Originator:     Fredrik Lindberg
>Release:        FreeBSD 5.2.1-RELEASE-p6 i386
>Organization:
>Environment:
System: FreeBSD biocandy 5.2.1-RELEASE-p6 FreeBSD 5.2.1-RELEASE-p6 #30: Sun May 9 13:12:52 CEST 2004 root@biocandy:/usr/obj/usr/src/sys/BIOCANDY i386


	
>Description:
Susteen USB Data Cable (http://www.susteen.com), also known as SonyEricsson DCU-11,
is not identified as a ucom(4) device hence it is a normal "serial over usb" device.

The cable allows you to connect several of SonyEricssons mobilephones, 
all communication with the phones are done like with a normal serial modem (AT commands)

>How-To-Repeat:
Plug in the cable, kernel says it's a ugen(4) device. 

>Fix:
The following patch makes the device appears as a ucom(4) device

--- cut ---

diff -ruN usb.orig/uplcom.c usb/uplcom.c
--- usb.orig/uplcom.c   Sat May  8 15:31:14 2004
+++ usb/uplcom.c	Sat May  8 15:37:10 2004
@@ -216,6 +216,8 @@
	{ USB_VENDOR_SOURCENEXT, USB_PRODUCT_SOURCENEXT_KEIKAI8_CHG },
	/* HAL Corporation Crossam2+USB */
	{ USB_VENDOR_HAL, USB_PRODUCT_HAL_IMR001 },
+       /* Susteen USB Data Cable */
+       { USB_VENDOR_SUSTEEN, USB_PRODUCT_SUSTEEN_USBDC },
	{ 0, 0 }
 };

diff -ruN usb.orig/usbdevs usb/usbdevs
--- usb.orig/usbdevs    Sat May  8 15:31:19 2004
+++ usb/usbdevs Sat May  8 15:25:15 2004
@@ -252,6 +252,7 @@
 vendor SMC	     0x0707  Standard Microsystems
 vendor PUTERCOM		0x0708  Putercom
 vendor MCT	     0x0711  MCT
+vendor SUSTEEN	 0x0731  Susteen Inc.
 vendor DIGITALSTREAM   0x074e  Digital Stream
 vendor AUREAL	  0x0755  Aureal Semiconductor
 vendor MIDIMAN	 0x0763  Midiman
@@ -867,6 +868,9 @@
 product MCT DU_H3SP_USB232     0x0200  D-Link DU-H3SP USB BAY Hub
 product MCT USB232	     0x0210  USB-232 Interface
 product MCT SITECOM_USB232     0x0230  Sitecom USB-232 Products
+
+/* Susteen Inc. */
+product SUSTEEN USBDC	  0x0528  USB Data Cable

 /* Melco, Inc products */
 product MELCO LUATX1	   0x0001  LUA-TX Ethernet

--- cut ---

Extensive testing has been done with a Ericsson T65 mobile, no anomalies found.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: sanpei 
State-Changed-When: Sun Aug 8 05:22:09 GMT 2004 
State-Changed-Why:  
Committed uplcom.c 1.20, thanks 

http://www.freebsd.org/cgi/query-pr.cgi?pr=66416 
State-Changed-From-To: patched->closed 
State-Changed-By: sanpei 
State-Changed-When: Wed Aug 18 03:28:57 GMT 2004 
State-Changed-Why:  
Committed 4-stable, thanks 


Responsible-Changed-From-To: freebsd-bugs->sanpei 
Responsible-Changed-By: sanpei 
Responsible-Changed-When: Wed Aug 18 03:28:57 GMT 2004 
Responsible-Changed-Why:  
Committed 4-stable, thanks 

http://www.freebsd.org/cgi/query-pr.cgi?pr=66416 
>Unformatted:
