[PATCH] add support for Huawei E3372

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] add support for Huawei E3372

Kevin Lo
Hi,

Below are the diffs to make the Huawei E3372 work. dmesg:

umsm0 at uhub0 port 4 configuration 1 interface 0 "HUAWEI_MOBILE HUAWEI_MOBILE" rev 2.10/1.02 addr 3
umsm0 detached
umsm0 at uhub0 port 4 configuration 1 interface 0 "HUAWEI_MOBILE HUAWEI_MOBILE" rev 2.10/1.02 addr 3
ucom0 at umsm0
umsm1 at uhub0 port 4 configuration 1 interface 1 "HUAWEI_MOBILE HUAWEI_MOBILE" rev 2.10/1.02 addr 3

ok?

Index: share/man/man4/umsm.4
===================================================================
RCS file: /cvs/src/share/man/man4/umsm.4,v
retrieving revision 1.92
diff -u -p -u -p -r1.92 umsm.4
--- share/man/man4/umsm.4 12 Dec 2016 04:26:29 -0000 1.92
+++ share/man/man4/umsm.4 11 Jan 2018 08:51:49 -0000
@@ -73,6 +73,7 @@ driver:
 .It Li "Huawei Mobile E1750" Ta "USB"
 .It Li "Huawei Mobile E1752" Ta "USB"
 .It Li "Huawei Mobile E1820" Ta "USB"
+.It Li "Huawei Mobile E3372" Ta "USB"
 .It Li "Huawei Mobile EM770W" Ta "PCI Express Mini Card"
 .It Li "Huawei Mobile K4510" Ta "USB"
 .It Li "Huawei Mobile K4511" Ta "USB"
Index: sys/dev/usb/umsm.c
===================================================================
RCS file: /cvs/src/sys/dev/usb/umsm.c,v
retrieving revision 1.109
diff -u -p -u -p -r1.109 umsm.c
--- sys/dev/usb/umsm.c 8 Apr 2017 02:57:25 -0000 1.109
+++ sys/dev/usb/umsm.c 11 Jan 2018 08:51:50 -0000
@@ -147,6 +147,7 @@ static const struct umsm_type umsm_devs[
  {{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_K4511 }, DEV_UMASS5},
  {{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E1750 }, DEV_UMASS5},
  {{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E1752 }, 0},
+ {{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E3372 }, DEV_UMASS5},
 
  {{ USB_VENDOR_HYUNDAI, USB_PRODUCT_HYUNDAI_UM175 }, 0},
 
Index: sys/dev/usb/usbdevs
===================================================================
RCS file: /cvs/src/sys/dev/usb/usbdevs,v
retrieving revision 1.679
diff -u -p -u -p -r1.679 usbdevs
--- sys/dev/usb/usbdevs 14 Dec 2017 09:22:16 -0000 1.679
+++ sys/dev/usb/usbdevs 11 Jan 2018 08:51:50 -0000
@@ -2209,6 +2209,7 @@ product HUAWEI E510 0x1411 HUAWEI Mobil
 product HUAWEI E181 0x1414 HUAWEI Mobile E181
 product HUAWEI E1752 0x1417 HUAWEI Mobile Modem
 product HUAWEI E182 0x1429 HUAWEI Mobile Modem
+product HUAWEI E3372 0x1442 HUAWEI Mobile Modem
 product HUAWEI E161 0x1446 HUAWEI Mobile Modem
 product HUAWEI K3765 0x1465 HUAWEI Mobile K3765
 product HUAWEI E1820 0x14ac HUAWEI Mobile Modem