Atanas Vladimirov
2016-02-15 14:59:10 UTC
Hi,
With the diff bellow I tried to enable Huawei E3131h-2 but I got
umsm1: missing endpoint and my "magic" ends here.
Any help is appreciated.
Thanks.
Index: umsm.c
===================================================================
RCS file: /cvs/src/sys/dev/usb/umsm.c,v
retrieving revision 1.104
diff -u -p -r1.104 umsm.c
--- umsm.c 29 Sep 2015 08:34:28 -0000 1.104
+++ umsm.c 15 Feb 2016 14:23:18 -0000
@@ -137,6 +137,8 @@ static const struct umsm_type umsm_devs[
{{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E510 }, DEV_HUAWEI},
{{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E618 }, DEV_HUAWEI},
{{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E392_INIT }, DEV_UMASS5},
+ {{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E3131 }, 0},
+ {{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E3131_INIT }, DEV_UMASS5},
{{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_EM770W }, 0},
{{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_Mobile }, DEV_HUAWEI},
{{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_K3765_INIT }, DEV_UMASS5},
Index: usbdevs
===================================================================
RCS file: /cvs/src/sys/dev/usb/usbdevs,v
retrieving revision 1.662
diff -u -p -r1.662 usbdevs
--- usbdevs 8 Jan 2016 09:31:32 -0000 1.662
+++ usbdevs 15 Feb 2016 14:23:19 -0000
@@ -2200,6 +2200,8 @@ product HUAWEI E353_INIT 0x14fe HUAWEI M
product HUAWEI E392_INIT 0x1505 HUAWEI Mobile E392 Initial
product HUAWEI K3765_INIT 0x1520 HUAWEI Mobile K3765 Initial
product HUAWEI MU609 0x1573 HUAWEI Mobile ME906
+product HUAWEI E3131 0x1506 HUAWEI Mobile E3131
+product HUAWEI E3131_INIT 0x15ca HUAWEI Mobile E3131 Initial
product HUAWEI E173S 0x1c05 HUAWEI Mobile E173s
product HUAWEI E173S_INIT 0x1c0b HUAWEI Mobile E173s Initial
product HUAWEI E303 0x1f01 HUAWEI Mobile E303
umsm0 at uhub5 port 3 configuration 1 interface 0 "HUAWEI HUAWEI Mobile"
rev 2.00/1.02 addr 2
umsm0 detached
umsm0 at uhub5 port 3 configuration 1 interface 0 "HUAWEI HUAWEI Mobile"
rev 2.00/1.02 addr 2
ucom0 at umsm0
umsm1 at uhub5 port 3 configuration 1 interface 1 "HUAWEI HUAWEI Mobile"
rev 2.00/1.02 addr 2
umsm1: missing endpoint
umsm2 at uhub5 port 3 configuration 1 interface 2 "HUAWEI Technologies
HUAWEI Mobile E3131" rev 2.00/1.02 addr 2
ucom1 at umsm2
umsm3 at uhub5 port 3 configuration 1 interface 3 "HUAWEI Technologies
HUAWEI Mobile E3131" rev 2.00/1.02 addr 2
ucom2 at umsm3
umass0 at uhub5 port 3 configuration 1 interface 4 "HUAWEI Technologies
HUAWEI Mobile E3131" rev 2.00/1.02 addr 2
umass0: using SCSI over Bulk-Only
scsibus5 at umass0: 2 targets, initiator 0
umass1 at uhub5 port 3 configuration 1 interface 5 "HUAWEI Technologies
HUAWEI Mobile E3131" rev 2.00/1.02 addr 2
umass1: using SCSI over Bulk-Only
scsibus6 at umass1: 2 targets, initiator 0
#usbdev -v
Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000),
Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
port 3 powered
port 4 powered
Controller /dev/usb1:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000),
Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
port 3 addr 2: high speed, power 500 mA, config 1, HUAWEI Mobile
E3131(0x1506), HUAWEI Technologies(0x12d1), rev 1.02
port 4 powered
port 5 powered
port 6 powered
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
Controller /dev/usb3:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
port 1 powered
port 2 addr 2: low speed, power 100 mA, config 1, USB Optical
Mouse(0xc05a), Logitech(0x046d), rev 63.00
Controller /dev/usb4:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
Controller /dev/usb5:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
With the diff bellow I tried to enable Huawei E3131h-2 but I got
umsm1: missing endpoint and my "magic" ends here.
Any help is appreciated.
Thanks.
Index: umsm.c
===================================================================
RCS file: /cvs/src/sys/dev/usb/umsm.c,v
retrieving revision 1.104
diff -u -p -r1.104 umsm.c
--- umsm.c 29 Sep 2015 08:34:28 -0000 1.104
+++ umsm.c 15 Feb 2016 14:23:18 -0000
@@ -137,6 +137,8 @@ static const struct umsm_type umsm_devs[
{{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E510 }, DEV_HUAWEI},
{{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E618 }, DEV_HUAWEI},
{{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E392_INIT }, DEV_UMASS5},
+ {{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E3131 }, 0},
+ {{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E3131_INIT }, DEV_UMASS5},
{{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_EM770W }, 0},
{{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_Mobile }, DEV_HUAWEI},
{{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_K3765_INIT }, DEV_UMASS5},
Index: usbdevs
===================================================================
RCS file: /cvs/src/sys/dev/usb/usbdevs,v
retrieving revision 1.662
diff -u -p -r1.662 usbdevs
--- usbdevs 8 Jan 2016 09:31:32 -0000 1.662
+++ usbdevs 15 Feb 2016 14:23:19 -0000
@@ -2200,6 +2200,8 @@ product HUAWEI E353_INIT 0x14fe HUAWEI M
product HUAWEI E392_INIT 0x1505 HUAWEI Mobile E392 Initial
product HUAWEI K3765_INIT 0x1520 HUAWEI Mobile K3765 Initial
product HUAWEI MU609 0x1573 HUAWEI Mobile ME906
+product HUAWEI E3131 0x1506 HUAWEI Mobile E3131
+product HUAWEI E3131_INIT 0x15ca HUAWEI Mobile E3131 Initial
product HUAWEI E173S 0x1c05 HUAWEI Mobile E173s
product HUAWEI E173S_INIT 0x1c0b HUAWEI Mobile E173s Initial
product HUAWEI E303 0x1f01 HUAWEI Mobile E303
umsm0 at uhub5 port 3 configuration 1 interface 0 "HUAWEI HUAWEI Mobile"
rev 2.00/1.02 addr 2
umsm0 detached
umsm0 at uhub5 port 3 configuration 1 interface 0 "HUAWEI HUAWEI Mobile"
rev 2.00/1.02 addr 2
ucom0 at umsm0
umsm1 at uhub5 port 3 configuration 1 interface 1 "HUAWEI HUAWEI Mobile"
rev 2.00/1.02 addr 2
umsm1: missing endpoint
umsm2 at uhub5 port 3 configuration 1 interface 2 "HUAWEI Technologies
HUAWEI Mobile E3131" rev 2.00/1.02 addr 2
ucom1 at umsm2
umsm3 at uhub5 port 3 configuration 1 interface 3 "HUAWEI Technologies
HUAWEI Mobile E3131" rev 2.00/1.02 addr 2
ucom2 at umsm3
umass0 at uhub5 port 3 configuration 1 interface 4 "HUAWEI Technologies
HUAWEI Mobile E3131" rev 2.00/1.02 addr 2
umass0: using SCSI over Bulk-Only
scsibus5 at umass0: 2 targets, initiator 0
umass1 at uhub5 port 3 configuration 1 interface 5 "HUAWEI Technologies
HUAWEI Mobile E3131" rev 2.00/1.02 addr 2
umass1: using SCSI over Bulk-Only
scsibus6 at umass1: 2 targets, initiator 0
#usbdev -v
Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000),
Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
port 3 powered
port 4 powered
Controller /dev/usb1:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000),
Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
port 3 addr 2: high speed, power 500 mA, config 1, HUAWEI Mobile
E3131(0x1506), HUAWEI Technologies(0x12d1), rev 1.02
port 4 powered
port 5 powered
port 6 powered
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
Controller /dev/usb3:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
port 1 powered
port 2 addr 2: low speed, power 100 mA, config 1, USB Optical
Mouse(0xc05a), Logitech(0x046d), rev 63.00
Controller /dev/usb4:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
Controller /dev/usb5:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
port 1 powered
port 2 powered