Bug 169789 - [u3g] [patch] add support for huawei e3131
Summary: [u3g] [patch] add support for huawei e3131
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: usb (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-usb (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-11 19:40 UTC by Piotr Pacholak
Modified: 2015-12-25 05:03 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (1019 bytes, patch)
2012-07-11 19:40 UTC, Piotr Pacholak
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Pacholak 2012-07-11 19:40:02 UTC
After adding these ids, huawei e3131 comes up as umodem's /dev/cuaU[012].

Fix: Patch attached with submission follows:
How-To-Repeat: Plug in Huawei E3131
Comment 1 dfilter service freebsd_committer freebsd_triage 2012-07-15 19:12:21 UTC
Author: hselasky
Date: Sun Jul 15 18:12:09 2012
New Revision: 238493
URL: http://svn.freebsd.org/changeset/base/238493

Log:
  Add new USB device ID.
  
  PR:		usb/169789
  MFC after:	1 week

Modified:
  head/sys/dev/usb/serial/u3g.c
  head/sys/dev/usb/usbdevs

Modified: head/sys/dev/usb/serial/u3g.c
==============================================================================
--- head/sys/dev/usb/serial/u3g.c	Sun Jul 15 17:44:27 2012	(r238492)
+++ head/sys/dev/usb/serial/u3g.c	Sun Jul 15 18:12:09 2012	(r238493)
@@ -282,6 +282,8 @@ static const STRUCT_USB_HOST_ID u3g_devs
 	U3G_DEV(HUAWEI, E143F, U3GINIT_HUAWEI),
 	U3G_DEV(HUAWEI, E173, 0),
 	U3G_DEV(HUAWEI, E173_INIT, U3GINIT_HUAWEISCSI),
+	U3G_DEV(HUAWEI, E3131, 0),
+	U3G_DEV(HUAWEI, E3131_INIT, U3GINIT_HUAWEISCSI),
 	U3G_DEV(HUAWEI, E180V, U3GINIT_HUAWEI),
 	U3G_DEV(HUAWEI, E220, U3GINIT_HUAWEI),
 	U3G_DEV(HUAWEI, E220BIS, U3GINIT_HUAWEI),

Modified: head/sys/dev/usb/usbdevs
==============================================================================
--- head/sys/dev/usb/usbdevs	Sun Jul 15 17:44:27 2012	(r238492)
+++ head/sys/dev/usb/usbdevs	Sun Jul 15 18:12:09 2012	(r238493)
@@ -1894,6 +1894,8 @@ product HUAWEI E143F		0x143f	3G modem
 product HUAWEI E1752		0x1446	3G modem
 product HUAWEI K3765		0x1465	3G modem
 product HUAWEI E1820		0x14ac	E1820 HSPA+ USB Slider
+product HUAWEI E3131_INIT	0x14fe	3G modem initial
+product HUAWEI E3131		0x1506	3G modem
 product HUAWEI K3765_INIT	0x1520	K3765 Initial
 product HUAWEI ETS2055		0x1803	CDMA modem
 product HUAWEI E173		0x1c05	3G modem
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
Comment 2 dfilter service freebsd_committer freebsd_triage 2012-07-16 10:36:03 UTC
Author: hselasky
Date: Mon Jul 16 09:35:47 2012
New Revision: 238526
URL: http://svn.freebsd.org/changeset/base/238526

Log:
  Add new USB device ID.
  
  PR:		usb/169789
  MFC after:	1 week

Modified:
  head/sys/dev/usb/serial/u3g.c
  head/sys/dev/usb/usbdevs

Modified: head/sys/dev/usb/serial/u3g.c
==============================================================================
--- head/sys/dev/usb/serial/u3g.c	Mon Jul 16 09:02:43 2012	(r238525)
+++ head/sys/dev/usb/serial/u3g.c	Mon Jul 16 09:35:47 2012	(r238526)
@@ -359,6 +359,7 @@ static const STRUCT_USB_HOST_ID u3g_devs
 	U3G_DEV(QUALCOMM2, MF330, 0),
 	U3G_DEV(QUALCOMM2, SIM5218, 0),
 	U3G_DEV(QUALCOMM2, VW110L, U3GINIT_SCSIEJECT),
+	U3G_DEV(QUALCOMM2, GOBI2000, 0),
 	U3G_DEV(QUALCOMMINC, AC2726, 0),
 	U3G_DEV(QUALCOMMINC, AC8700, 0),
 	U3G_DEV(QUALCOMMINC, AC8710, 0),

Modified: head/sys/dev/usb/usbdevs
==============================================================================
--- head/sys/dev/usb/usbdevs	Mon Jul 16 09:02:43 2012	(r238525)
+++ head/sys/dev/usb/usbdevs	Mon Jul 16 09:35:47 2012	(r238526)
@@ -2705,6 +2705,7 @@ product QUALCOMM2 CDMA_MSM	0x3196	CDMA T
 product QUALCOMM2 AC8700	0x6000	AC8700
 product QUALCOMM2 VW110L	0x1000	Vertex Wireless 110L modem
 product QUALCOMM2 SIM5218	0x9000	SIM5218
+product QUALCOMM2 GOBI2000	0x9204	Qualcomm Gobi 2000
 product QUALCOMMINC CDMA_MSM	0x0001	CDMA Technologies MSM modem
 product QUALCOMMINC E0002	0x0002	3G modem
 product QUALCOMMINC E0003	0x0003	3G modem
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
Comment 3 dfilter service freebsd_committer freebsd_triage 2012-07-16 11:12:22 UTC
Author: hselasky
Date: Mon Jul 16 10:12:07 2012
New Revision: 238529
URL: http://svn.freebsd.org/changeset/base/238529

Log:
  Add new USB device ID.
  
  PR:		usb/169789
  Submitted by:	Ruslan Bukin
  MFC after:	1 week

Modified:
  head/sys/dev/usb/serial/u3g.c
  head/sys/dev/usb/usbdevs

Modified: head/sys/dev/usb/serial/u3g.c
==============================================================================
--- head/sys/dev/usb/serial/u3g.c	Mon Jul 16 09:50:29 2012	(r238528)
+++ head/sys/dev/usb/serial/u3g.c	Mon Jul 16 10:12:07 2012	(r238529)
@@ -359,6 +359,7 @@ static const STRUCT_USB_HOST_ID u3g_devs
 	U3G_DEV(QUALCOMM2, MF330, 0),
 	U3G_DEV(QUALCOMM2, SIM5218, 0),
 	U3G_DEV(QUALCOMM2, VW110L, U3GINIT_SCSIEJECT),
+	U3G_DEV(QUALCOMM2, GOBI2000_QDL, 0),
 	U3G_DEV(QUALCOMM2, GOBI2000, 0),
 	U3G_DEV(QUALCOMMINC, AC2726, 0),
 	U3G_DEV(QUALCOMMINC, AC8700, 0),

Modified: head/sys/dev/usb/usbdevs
==============================================================================
--- head/sys/dev/usb/usbdevs	Mon Jul 16 09:50:29 2012	(r238528)
+++ head/sys/dev/usb/usbdevs	Mon Jul 16 10:12:07 2012	(r238529)
@@ -2705,7 +2705,8 @@ product QUALCOMM2 CDMA_MSM	0x3196	CDMA T
 product QUALCOMM2 AC8700	0x6000	AC8700
 product QUALCOMM2 VW110L	0x1000	Vertex Wireless 110L modem
 product QUALCOMM2 SIM5218	0x9000	SIM5218
-product QUALCOMM2 GOBI2000	0x9204	Qualcomm Gobi 2000
+product QUALCOMM2 GOBI2000_QDL	0x9204	Qualcomm Gobi 2000 QDL
+product QUALCOMM2 GOBI2000	0x9205	Qualcomm Gobi 2000 modem
 product QUALCOMMINC CDMA_MSM	0x0001	CDMA Technologies MSM modem
 product QUALCOMMINC E0002	0x0002	3G modem
 product QUALCOMMINC E0003	0x0003	3G modem
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
Comment 4 dfilter service freebsd_committer freebsd_triage 2012-09-18 18:23:11 UTC
Author: hselasky
Date: Tue Sep 18 17:23:00 2012
New Revision: 240669
URL: http://svn.freebsd.org/changeset/base/240669

Log:
  MFC r238079, r238493, r238526, r238529 and r238717:
  Add new USB ID's.
  
  PR:             usb/169789

Modified:
  stable/9/sys/dev/usb/serial/u3g.c
  stable/9/sys/dev/usb/usbdevs
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/dev/   (props changed)

Modified: stable/9/sys/dev/usb/serial/u3g.c
==============================================================================
--- stable/9/sys/dev/usb/serial/u3g.c	Tue Sep 18 17:17:04 2012	(r240668)
+++ stable/9/sys/dev/usb/serial/u3g.c	Tue Sep 18 17:23:00 2012	(r240669)
@@ -285,14 +285,18 @@ static const STRUCT_USB_HOST_ID u3g_devs
 	U3G_DEV(HUAWEI, E143F, U3GINIT_HUAWEI),
 	U3G_DEV(HUAWEI, E173, 0),
 	U3G_DEV(HUAWEI, E173_INIT, U3GINIT_HUAWEISCSI),
+	U3G_DEV(HUAWEI, E3131, 0),
+	U3G_DEV(HUAWEI, E3131_INIT, U3GINIT_HUAWEISCSI),
 	U3G_DEV(HUAWEI, E180V, U3GINIT_HUAWEI),
 	U3G_DEV(HUAWEI, E220, U3GINIT_HUAWEI),
 	U3G_DEV(HUAWEI, E220BIS, U3GINIT_HUAWEI),
+	U3G_DEV(HUAWEI, E392, U3GINIT_HUAWEISCSI),
 	U3G_DEV(HUAWEI, MOBILE, U3GINIT_HUAWEI),
 	U3G_DEV(HUAWEI, E1752, U3GINIT_HUAWEISCSI),
 	U3G_DEV(HUAWEI, E1820, U3GINIT_HUAWEISCSI),
 	U3G_DEV(HUAWEI, K3765, U3GINIT_HUAWEI),
 	U3G_DEV(HUAWEI, K3765_INIT, U3GINIT_HUAWEISCSI),
+	U3G_DEV(HUAWEI, ETS2055, U3GINIT_HUAWEI),
 	U3G_DEV(KYOCERA2, CDMA_MSM_K, 0),
 	U3G_DEV(KYOCERA2, KPC680, 0),
 	U3G_DEV(LONGCHEER, WM66, U3GINIT_HUAWEI),
@@ -359,6 +363,8 @@ static const STRUCT_USB_HOST_ID u3g_devs
 	U3G_DEV(QUALCOMM2, MF330, 0),
 	U3G_DEV(QUALCOMM2, SIM5218, 0),
 	U3G_DEV(QUALCOMM2, VW110L, U3GINIT_SCSIEJECT),
+	U3G_DEV(QUALCOMM2, GOBI2000_QDL, 0),
+	U3G_DEV(QUALCOMM2, GOBI2000, 0),
 	U3G_DEV(QUALCOMMINC, AC2726, 0),
 	U3G_DEV(QUALCOMMINC, AC8700, 0),
 	U3G_DEV(QUALCOMMINC, AC8710, 0),

Modified: stable/9/sys/dev/usb/usbdevs
==============================================================================
--- stable/9/sys/dev/usb/usbdevs	Tue Sep 18 17:17:04 2012	(r240668)
+++ stable/9/sys/dev/usb/usbdevs	Tue Sep 18 17:23:00 2012	(r240669)
@@ -2184,7 +2184,11 @@ product HUAWEI E143F		0x143f	3G modem
 product HUAWEI E1752		0x1446	3G modem
 product HUAWEI K3765		0x1465	3G modem
 product HUAWEI E1820		0x14ac	E1820 HSPA+ USB Slider
+product HUAWEI E3131_INIT	0x14fe	3G modem initial
+product HUAWEI E392		0x1505	LTE modem
+product HUAWEI E3131		0x1506	3G modem
 product HUAWEI K3765_INIT	0x1520	K3765 Initial
+product HUAWEI ETS2055		0x1803	CDMA modem
 product HUAWEI E173		0x1c05	3G modem
 product HUAWEI E173_INIT	0x1c0b	3G modem initial
 
@@ -3328,6 +3332,8 @@ product QUALCOMM2 CDMA_MSM	0x3196	CDMA T
 product QUALCOMM2 AC8700	0x6000	AC8700
 product QUALCOMM2 VW110L	0x1000	Vertex Wireless 110L modem
 product QUALCOMM2 SIM5218	0x9000	SIM5218
+product QUALCOMM2 GOBI2000_QDL	0x9204	Qualcomm Gobi 2000 QDL
+product QUALCOMM2 GOBI2000	0x9205	Qualcomm Gobi 2000 modem
 product QUALCOMMINC CDMA_MSM	0x0001	CDMA Technologies MSM modem
 product QUALCOMMINC E0002	0x0002	3G modem
 product QUALCOMMINC E0003	0x0003	3G modem
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
Comment 5 Martin Wilke freebsd_committer freebsd_triage 2015-12-25 05:03:17 UTC
Committed in 3 years ago.