From owner-freebsd-usb@FreeBSD.ORG Wed Jul 11 18:40:03 2012 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 303E7106566C for ; Wed, 11 Jul 2012 18:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A3B688FC15 for ; Wed, 11 Jul 2012 18:40:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q6BIe24c059141 for ; Wed, 11 Jul 2012 18:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q6BIe2Ud059140; Wed, 11 Jul 2012 18:40:02 GMT (envelope-from gnats) Resent-Date: Wed, 11 Jul 2012 18:40:02 GMT Resent-Message-Id: <201207111840.q6BIe2Ud059140@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Piotr Pacholak Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0A809106564A for ; Wed, 11 Jul 2012 18:32:35 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id EA0358FC14 for ; Wed, 11 Jul 2012 18:32:34 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q6BIWYoE036711 for ; Wed, 11 Jul 2012 18:32:34 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q6BIWYqg036710; Wed, 11 Jul 2012 18:32:34 GMT (envelope-from nobody) Message-Id: <201207111832.q6BIWYqg036710@red.freebsd.org> Date: Wed, 11 Jul 2012 18:32:34 GMT From: Piotr Pacholak To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/169789: support for huawei e3131 - patch 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: Wed, 11 Jul 2012 18:40:03 -0000 >Number: 169789 >Category: usb >Synopsis: support for huawei e3131 - patch >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Jul 11 18:40:02 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Piotr Pacholak >Release: FreeBSD 9-STABLE i386 >Organization: >Environment: FreeBSD zarnik 9.0-STABLE FreeBSD 9.0-STABLE #8 r238253M: Mon Jul 9 00:33:46 UTC 2012 root@zarnik:/usr/obj/usr/src/sys/GENERIC i386 >Description: After adding these ids, huawei e3131 comes up as umodem's /dev/cuaU[012]. >How-To-Repeat: Plug in Huawei E3131 >Fix: Patch attached with submission follows: Index: serial/u3g.c =================================================================== --- sys/dev/usb/serial/u3g.c (revision 238253) +++ sys/dev/usb/serial/u3g.c (working copy) @@ -282,6 +282,8 @@ U3G_DEV(HUAWEI, E143F, U3GINIT_HUAWEI), U3G_DEV(HUAWEI, E173, 0), U3G_DEV(HUAWEI, E173_INIT, U3GINIT_HUAWEISCSI), + U3G_DEV(HUAWEI, E3131, 0), + U3G_DEV(HUAWEI, E3131_INIT, U3GINIT_HUAWEISCSI), U3G_DEV(HUAWEI, E180V, U3GINIT_HUAWEI), U3G_DEV(HUAWEI, E220, U3GINIT_HUAWEI), U3G_DEV(HUAWEI, E220BIS, U3GINIT_HUAWEI), Index: usbdevs =================================================================== --- sys/dev/usb/usbdevs (revision 238253) +++ sys/dev/usb/usbdevs (working copy) @@ -1888,6 +1888,8 @@ product HUAWEI K3765_INIT 0x1520 K3765 Initial product HUAWEI E173 0x1c05 3G modem product HUAWEI E173_INIT 0x1c0b 3G modem initial +product HUAWEI E3131 0x1506 3G modem +product HUAWEI E3131_INIT 0x14fe 3G modem initial /* HUAWEI 3com products */ product HUAWEI3COM WUB320G 0x0009 Aolynk WUB320g >Release-Note: >Audit-Trail: >Unformatted: