NetBSD Problem Report #41667

From www@NetBSD.org  Fri Jul  3 08:57:06 2009
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 0DFE863B913
	for <gnats-bugs@gnats.netbsd.org>; Fri,  3 Jul 2009 08:57:06 +0000 (UTC)
Message-Id: <20090703085705.CD5A963B883@www.NetBSD.org>
Date: Fri,  3 Jul 2009 08:57:05 +0000 (UTC)
From: mvertes@free.fr
Reply-To: mvertes@free.fr
To: gnats-bugs@NetBSD.org
Subject: patch to support ZTE MF626 usb 3g modem
X-Send-Pr-Version: www-1.0

>Number:         41667
>Category:       kern
>Synopsis:       patch to support ZTE MF626 usb 3g modem
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 03 09:00:00 +0000 2009
>Closed-Date:    Mon Feb 08 21:14:35 +0000 2010
>Last-Modified:  Mon Feb 08 21:14:35 +0000 2010
>Originator:     Marc Vertes
>Release:        Current
>Organization:
>Environment:
NetBSD shebang.oligem.com 5.99.14 NetBSD 5.99.14 (X61) #4: Fri Jul  3 00:20:14 CEST 2009  marc@shebang.oligem.com:/usr/objdir/sys/arch/amd64/compile/X61 amd64

>Description:
The ZTE MF626 key is a usb wireless 3g key.

After plugging and ejecting the pseudo cdrom driver (eject /dev/cd0d), a serial modem should come up. It doesn't because the device product id is not in the list of known devices.

After plugging the key, dmesg says:
umass0 at uhub5 port 1 configuration 1 interface 0
umass0: ZTE, Incorporated ZTE CDMA Technologies MSM, rev 2.00/0.00, addr 2
umass0: using ATAPI over Bulk-Only
atapibus0 at umass0: 2 targets
cd0 at atapibus0 drive 0: <ZTE, USB SCSI CD-ROM, 2.31> cdrom removable
>How-To-Repeat:
Plug a ZTE MF626 key in a usb slot. Eject /dev/cd0a; eject /dev/cd0d
>Fix:
Apply following patch (note: diffs in generated usbdevs.h and usbdevs_data.h not included).

After patch applied, and eject /dev/cd0a; eject /dev/cd0d, dmesg says:
cd0(umass0:0:0): not ready, data = 00 00 00 00 3a 00 00 00 00 00
cd0(umass0:0:0): not ready, data = 00 00 00 00 3a 00 00 00 00 00
umass0: at uhub5 port 1 (addr 2) disconnected
cd0: detached
atapibus0: detached
umass0: detached
u3g0 at uhub5 port 1
ucom0 at u3g0 portno 0: Generic 3G Serial Device
ucom1 at u3g0 portno 1: Generic 3G Serial Device
ucom2 at u3g0 portno 2: Generic 3G Serial Device
ucom3 at u3g0 portno 3: Generic 3G Serial Device


cvs diff: Diffing .
Index: u3g.c
===================================================================
RCS file: /cvsroot/src/sys/dev/usb/u3g.c,v
retrieving revision 1.7
diff -u -r1.7 u3g.c
--- u3g.c       29 May 2009 18:49:21 -0000      1.7
+++ u3g.c       3 Jul 2009 08:52:27 -0000
@@ -85,6 +85,7 @@
        { USB_VENDOR_OPTIONNV, USB_PRODUCT_OPTIONNV_GTMAXHSUPA },
        /* OEM: Qualcomm, Inc. */
        { USB_VENDOR_QUALCOMMINC, USB_PRODUCT_QUALCOMMINC_CDMA_MSM },
+       { USB_VENDOR_QUALCOMMINC, USB_PRODUCT_QUALCOMMINC_ZTE_MF626 },
        /* OEM: Huawei */
        { USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_MOBILE },
        { USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E220 },
Index: usbdevs
===================================================================
RCS file: /cvsroot/src/sys/dev/usb/usbdevs,v
retrieving revision 1.528
diff -u -r1.528 usbdevs
--- usbdevs     19 Jun 2009 01:14:27 -0000      1.528
+++ usbdevs     3 Jul 2009 08:52:28 -0000
@@ -1900,6 +1900,7 @@
 product QUALCOMM MSM_HSDPA     0x6613  HSDPA MSM
 product QUALCOMM2 CDMA_MSM     0x3196  CDMA Technologies MSM modem
 product QUALCOMMINC CDMA_MSM   0x0001  CDMA Technologies MSM modem
+product QUALCOMMINC ZTE_MF626  0x0031  CDMA Technologies MSM modem

 /* Qualcomm Kyocera products */
 product QUALCOMM_K CDMA_MSM_K  0x17da  Qualcomm Kyocera CDMA Technologies MSM

>Release-Note:

>Audit-Trail:
From: Soren Jacobsen <snj@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/41667 CVS commit: src/sys/dev/usb
Date: Mon, 8 Feb 2010 20:43:01 +0000

 Module Name:	src
 Committed By:	snj
 Date:		Mon Feb  8 20:43:01 UTC 2010

 Modified Files:
 	src/sys/dev/usb: usbdevs

 Log Message:
 Add ZTE MF626.  From Marc Vertes in PR kern/41667.


 To generate a diff of this commit:
 cvs rdiff -u -r1.542 -r1.543 src/sys/dev/usb/usbdevs

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

From: Soren Jacobsen <snj@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/41667 CVS commit: src/sys/dev/usb
Date: Mon, 8 Feb 2010 20:45:43 +0000

 Module Name:	src
 Committed By:	snj
 Date:		Mon Feb  8 20:45:43 UTC 2010

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

 Log Message:
 Add ZTE MF626.  From Marc Vertes in PR kern/41667.


 To generate a diff of this commit:
 cvs rdiff -u -r1.9 -r1.10 src/sys/dev/usb/u3g.c

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

State-Changed-From-To: open->closed
State-Changed-By: snj@NetBSD.org
State-Changed-When: Mon, 08 Feb 2010 21:14:35 +0000
State-Changed-Why:
Committed.  Thanks!


>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.