kern/97948: CMOTECH CDMA USB modem support

Alexei Volkov kot at kotzone.ru
Thu May 25 23:10:13 PDT 2006


>Number:         97948
>Category:       kern
>Synopsis:       CMOTECH CDMA USB modem support
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 26 06:10:12 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Alexei Volkov
>Release:        6.1-STABLE
>Organization:
>Environment:
FreeBSD kotm.vladimir.psb 6.1-STABLE FreeBSD 6.1-STABLE #2: Thu May 25 16:15:07 MSD 2006     root at kotm.vladimir.psb:/usr/obj/u sr/src/sys/psbgate  i386

>Description:
After attaching CMOTECH CDMA USB modem with preloaded ucom and umodem kernel modules it appears as ucom device and immideatly detached with following error:

May 25 15:02:49 kotm kernel: ucom0: CMOTECH CO., LTD. CMOTECH CDMA Technologies, rev 1.01/0.00, addr 2, iclass 2/2
May 25 15:02:49 kotm kernel: ucom0: data interface 1, has CM over data, has break
May 25 15:02:54 kotm kernel: ucom0: could not set data multiplex mode
May 25 15:02:54 kotm kernel: device_attach: ucom0 attach returned 6
May 25 15:02:56 kotm kernel: ucom0: at uhub1 port 1 (addr 2) disconnected

Meanwhile usbdevs reports following detection of this device:

kotm# usbdevs -v
Controller /dev/usb0:
addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), SiS(0x0000), rev 1.00
 port 1 powered
 port 2 powered
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), SiS(0x0000), rev 1.00
 port 1 powered
 port 2 addr 2: full speed, power 100 mA, config 1, CMOTECH CDMA Technologies(0x5141), CMOTECH CO., LTD.(0x16d8), rev 0.00

>How-To-Repeat:
#kldload ucom
#kldload umodem

Attach CMOTECH CDMA USB modem watching console messages.
>Fix:
Preset special quirk UQ_ASSUME_CM_OVER_DATA for this device in usb_quirks.c using following patch:

--- /usr/src/sys/dev/usb/usbdevs        Sat Mar 18 23:30:25 2006
+++ /usr/src/sys/dev/usb/usbdevs        Fri May 26 09:44:11 2006
@@ -537,6 +537,7 @@
 vendor SITECOM         0x6189  Sitecom
 vendor INTEL           0x8086  Intel
 vendor HP2             0xf003  Hewlett Packard
+vendor CMOTECH         0x16d8  CMOTECH CO., LTD.

 /*
  * List of known products.  Grouped by vendor.
@@ -1628,3 +1629,7 @@
 /* ZyXEL Communication Co. products */
 product ZYXEL OMNI56K          0x1500  Omni 56K Plus
 product ZYXEL 980N             0x2011  Scorpion-980N keyboard
+
+/* CMOTECH products */
+product CMOTECH CDMA           0x5141  CMOTECH CDMA Technologies USB modem
+
--- /usr/src/sys/dev/usb/usb_quirks.c   Thu Feb 16 01:51:08 2006
+++ /usr/src/sys/dev/usb/usb_quirks.c   Fri May 26 09:44:11 2006
@@ -110,6 +110,7 @@
        ANY, { UQ_HID_IGNORE }},
  { USB_VENDOR_MGE, USB_PRODUCT_MGE_UPS2,
        ANY, { UQ_HID_IGNORE }},
+ { USB_VENDOR_CMOTECH, USB_PRODUCT_CMOTECH_CDMA, ANY, {UQ_ASSUME_CM_OVER_DATA}},
  { 0, 0, 0, { 0 } }
 };


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list