From owner-freebsd-usb@FreeBSD.ORG Sun Feb 13 21:30:12 2011 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 7A5A3106566C for ; Sun, 13 Feb 2011 21:30:12 +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 3B19E8FC0C for ; Sun, 13 Feb 2011 21:30:12 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p1DLUC4t053397 for ; Sun, 13 Feb 2011 21:30:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p1DLUCpj053393; Sun, 13 Feb 2011 21:30:12 GMT (envelope-from gnats) Resent-Date: Sun, 13 Feb 2011 21:30:12 GMT Resent-Message-Id: <201102132130.p1DLUCpj053393@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, Goran Tal Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3632E106566B for ; Sun, 13 Feb 2011 21:26:17 +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 0A5558FC14 for ; Sun, 13 Feb 2011 21:26:17 +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 p1DLQGKT035791 for ; Sun, 13 Feb 2011 21:26:16 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p1DLQGFo035790; Sun, 13 Feb 2011 21:26:16 GMT (envelope-from nobody) Message-Id: <201102132126.p1DLQGFo035790@red.freebsd.org> Date: Sun, 13 Feb 2011 21:26:16 GMT From: Goran Tal To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/154753: Support for Qualcomm USB modem/storage on LG phone 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: Sun, 13 Feb 2011 21:30:12 -0000 >Number: 154753 >Category: usb >Synopsis: Support for Qualcomm USB modem/storage on LG phone >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Feb 13 21:30:11 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Goran Tal >Release: 7-STABLE >Organization: >Environment: >Description: These patches add ids to u3g driver and quirk to umass driver. Modem works with umodem driver, but u3g enables diagnostic port. Storage has READ_CAPACITY_OFFBY1 quirk. It seems that the same quirk is already reported in PR usb/122119 Patches are against 7-STABLE, but it should be simple to adapt them to current versions. modem is identified as Unknown USB device: vendor 0x1004 product 0x6000 bus uhub0 ucom0: and storage as Unknown USB device: vendor 0x05c6 product 0x1000 bus uhub0 umass0: >How-To-Repeat: >Fix: Patch attached with submission follows: --- sys/dev/usb/usbdevs 2010-09-13 20:07:00.000000000 -0400 +++ sys/dev/usb/usbdevs 2011-02-13 15:34:42.000000000 -0500 @@ -2064,6 +2064,7 @@ product QUALCOMMINC ZTE_MSM 0x0031 CDMA Technologies MSM modem product QUALCOMMINC ZTE_STOR 0x2000 USB ZTE Storage product QUALCOMMINC AC8700 0xfffe CDMA 1xEVDO USB modem +product QUALCOMM2 MMC_STOR 0x1000 USB MMC Storage /* Qtronix products */ product QTRONIX 980N 0x2011 Scorpion-980N keyboard --- sys/dev/usb/umass.c 2010-12-04 14:31:14.000000000 -0500 +++ sys/dev/usb/umass.c 2011-02-13 15:58:10.000000000 -0500 @@ -891,6 +891,10 @@ UMASS_PROTO_SCSI | UMASS_PROTO_BBB, NO_SYNCHRONIZE_CACHE }, + { USB_VENDOR_QUALCOMM2, USB_PRODUCT_QUALCOMM2_MMC_STOR, RID_WILDCARD, + UMASS_PROTO_SCSI | UMASS_PROTO_BBB, + READ_CAPACITY_OFFBY1 + }, { VID_EOT, PID_EOT, RID_EOT, 0, 0 } }; --- sys/dev/usb/u3g.c 2010-09-13 20:06:59.000000000 -0400 +++ sys/dev/usb/u3g.c 2011-02-13 15:37:46.000000000 -0500 @@ -137,6 +137,7 @@ /* OEM: Qualcomm, Inc. */ {{ USB_VENDOR_QUALCOMMINC, USB_PRODUCT_QUALCOMMINC_ZTE_STOR }, U3GSP_CDMA, U3GINIT_ZTESTOR }, {{ USB_VENDOR_QUALCOMMINC, USB_PRODUCT_QUALCOMMINC_CDMA_MSM }, U3GSP_CDMA, U3GINIT_EJECT }, + {{ USB_VENDOR_QUALCOMM, USB_PRODUCT_QUALCOMM_CDMA_MSM }, U3GSP_CDMA, U3GINIT_NONE }, {{ USB_VENDOR_QUALCOMMINC, USB_PRODUCT_QUALCOMMINC_ZTE_MSM }, U3GSP_CDMA, U3GINIT_NONE }, {{ USB_VENDOR_QUALCOMMINC, USB_PRODUCT_QUALCOMMINC_AC8700 }, U3GSP_CDMA, U3GINIT_NONE }, /* OEM: Huawei */ >Release-Note: >Audit-Trail: >Unformatted: