>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: <LG CDMA USB Modem LG CDMA USB Modem, class 2/0, rev 1.10/0.00, addr 2>

and storage as

Unknown USB device: vendor 0x05c6 product 0x1000 bus uhub0
umass0: <Qualcomm, Incorporated USB MMC Storage, class 0/0, rev 1.10/0.00, addr 
2>

>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:
_______________________________________________
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"

Reply via email to