git: d3a83456e1e3 - main - Add vendor id for Quectel USB modem and align with quectel marketing names.

From: Warner Losh <imp_at_FreeBSD.org>
Date: Tue, 27 Jun 2023 22:37:07 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=d3a83456e1e304db7901178e66e6df198573dbf4

commit d3a83456e1e304db7901178e66e6df198573dbf4
Author:     Gabriele Laganà <gabriele.lagana@live.it>
AuthorDate: 2023-06-27 22:35:18 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-06-27 22:35:20 +0000

    Add vendor id for Quectel USB modem and align with quectel marketing names.
    
    Reviewed by: imp
    Pull Request: https://github.com/freebsd/freebsd-src/pull/750
---
 share/man/man4/u3g.4     |  2 +-
 sys/dev/usb/serial/u3g.c | 26 +++++++++++++++++++++-----
 sys/dev/usb/usbdevs      | 26 +++++++++++++++++++++-----
 3 files changed, 43 insertions(+), 11 deletions(-)

diff --git a/share/man/man4/u3g.4 b/share/man/man4/u3g.4
index e8990968fd7b..f24ce6a2873d 100644
--- a/share/man/man4/u3g.4
+++ b/share/man/man4/u3g.4
@@ -72,7 +72,7 @@ Qualcomm Inc. CDMA MSM
 .It
 Qualcomm Inc. GOBI 1000, 2000 and 3000 devices with MDM1000 or MDM2000 chipsets
 .It
-QUECTEL EC25, EM05, EM12-G, EP06-E.
+QUECTEL BGX, ECX, EGX, EMX, EPX, RGX series.
 .It
 Quectel EM160R (see CAVEATS)
 .It
diff --git a/sys/dev/usb/serial/u3g.c b/sys/dev/usb/serial/u3g.c
index 1cdc28d93de4..c6584430c4e6 100644
--- a/sys/dev/usb/serial/u3g.c
+++ b/sys/dev/usb/serial/u3g.c
@@ -513,11 +513,27 @@ static const STRUCT_USB_HOST_ID u3g_devs[] = {
 	U3G_DEV(QUANTA, GLX, 0),
 	U3G_DEV(QUANTA, Q101, 0),
 	U3G_DEV(QUANTA, Q111, 0),
-	U3G_DEV(QUECTEL, EC25, 0),
-	U3G_DEV(QUECTEL, EM05, 0),
-	U3G_DEV(QUECTEL, EM12_G, 0),
-	U3G_DEV(QUECTEL, EP06_E, 0),
-	U3G_DEV(QUECTEL, EM160R, 0),
+    U3G_DEV(QUECTEL, EC25, 0),
+    U3G_DEV(QUECTEL, EM05, 0),
+    U3G_DEV(QUECTEL, EC21, 0),
+    U3G_DEV(QUECTEL, EG91, 0),
+    U3G_DEV(QUECTEL, EG95, 0),
+    U3G_DEV(QUECTEL, EP06, 0),
+    U3G_DEV(QUECTEL, EG065K, 0),
+    U3G_DEV(QUECTEL, EM12, 0),
+    U3G_DEV(QUECTEL, BG96, 0),
+    U3G_DEV(QUECTEL, BG95, 0),
+    U3G_DEV(QUECTEL, AG35, 0),
+    U3G_DEV(QUECTEL, AG15, 0),
+    U3G_DEV(QUECTEL, AG520, 0),
+    U3G_DEV(QUECTEL, AG550, 0),
+    U3G_DEV(QUECTEL, EM160R, 0),
+    U3G_DEV(QUECTEL, RG500, 0),
+    U3G_DEV(QUECTEL, RG520, 0),
+    U3G_DEV(QUECTEL, EC200, 0),
+    U3G_DEV(QUECTEL, EC200S, 0),
+    U3G_DEV(QUECTEL, EC200T, 0),
+    U3G_DEV(QUECTEL, UC200, 0),
 	U3G_DEV(SIERRA, AC402, 0),
 	U3G_DEV(SIERRA, AC595U, 0),
 	U3G_DEV(SIERRA, AC313U, 0),
diff --git a/sys/dev/usb/usbdevs b/sys/dev/usb/usbdevs
index 3af37f74a8b9..9ded33d79207 100644
--- a/sys/dev/usb/usbdevs
+++ b/sys/dev/usb/usbdevs
@@ -3985,11 +3985,27 @@ product QUANTA GLE		0xea06	HSDPA modem
 product QUANTA RW6815R		0xf003	HP iPAQ rw6815 RNDIS
 
 /* Quectel products */
-product QUECTEL EC25		0x0125	LTE modem
-product QUECTEL EM05		0x0127	LTE modem
-product QUECTEL EP06_E		0x0306	LTE modem
-product QUECTEL EM12_G          0x0512  LTE modem
-product QUECTEL EM160R		0x0620	LTE modem
+product QUECTEL EC25		0x0125	Quectel EC20(MDM9x07)/EC25/EG25
+product QUECTEL EM05		0x0127	Quectel EM05
+product QUECTEL EC21		0x0121	Quectel EC21
+product QUECTEL EG91		0x0191	Quectel EG91
+product QUECTEL EG95		0x0195	Quectel EG95
+product QUECTEL EP06		0x0306	Quectel EG06/EP06/EM06
+product QUECTEL EG065K		0x030B	Quectel EG065K/EG060K
+product QUECTEL EM12		0x0512	Quectel EG12/EP12/EM12/EG16/EG18
+product QUECTEL BG96		0x0296	Quectel BG96
+product QUECTEL BG95		0x0700	Quectel BG95/BG77/BG600L-M3/BC69
+product QUECTEL AG35		0x0435	Quectel AG35
+product QUECTEL AG15		0x0415	Quectel AG15
+product QUECTEL AG520		0x0452	Quectel AG520
+product QUECTEL AG550		0x0455	Quectel AG550
+product QUECTEL EM160R		0x0620	Quectel EM160R/EG20
+product QUECTEL RG500		0x0800	Quectel RG500/RM500/RG510/RM510
+product QUECTEL RG520		0x0801	Quectel RG520/RM520/SG520
+product QUECTEL EC200		0x6000	Quectel EC200/UC200
+product QUECTEL EC200S		0x6002  Quectel EC200S
+product QUECTEL EC200T		0x6026	Quectel EC200T
+product QUECTEL UC200		0x6120	Quectel UC200
 
 /* Quickshot products */
 product QUICKSHOT STRIKEPAD	0x6238	USB StrikePad