git: f0b3b85d0223 - releng/13.1 - u3g: Add support Quectel EM12-G modem.

From: Alexander V. Chernikov <melifaro_at_FreeBSD.org>
Date: Mon, 28 Mar 2022 15:26:06 UTC
The branch releng/13.1 has been updated by melifaro:

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

commit f0b3b85d0223d4a978918cfd2ff5b6a59362db2b
Author:     Alexander V. Chernikov <melifaro@FreeBSD.org>
AuthorDate: 2022-01-29 09:53:38 +0000
Commit:     Alexander V. Chernikov <melifaro@FreeBSD.org>
CommitDate: 2022-03-28 15:25:31 +0000

    u3g: Add support Quectel EM12-G modem.
    
    Submitted by:   <tda.77793 at gmail.com>
    PR:             260218
    Approved by:    re(gjb)
    MFC after:      2 weeks
    
    (cherry picked from commit 217481a3332783d03366c4512b0b164764aa6c6e)
    (cherry picked from commit 453b4f81939b5853b8ab493c0eeb4af7b1bbb3fc)
---
 share/man/man4/u3g.4     | 2 ++
 sys/dev/usb/serial/u3g.c | 1 +
 sys/dev/usb/usbdevs      | 1 +
 3 files changed, 4 insertions(+)

diff --git a/share/man/man4/u3g.4 b/share/man/man4/u3g.4
index 014a789cb57c..cf1152a6c1cb 100644
--- a/share/man/man4/u3g.4
+++ b/share/man/man4/u3g.4
@@ -70,6 +70,8 @@ Vodafone Mobile Broadband K3772-Z
 .It
 Qualcomm Inc. CDMA MSM
 .It
+QUECTEL EC25, EM05, EM12-G.
+.It
 Huawei B190, E180v, E220 ('<Huawei Mobile>')
 .It
 Novatel U740, MC950D, X950D, etc.
diff --git a/sys/dev/usb/serial/u3g.c b/sys/dev/usb/serial/u3g.c
index b83c2ebf8d47..4f835cc8d40e 100644
--- a/sys/dev/usb/serial/u3g.c
+++ b/sys/dev/usb/serial/u3g.c
@@ -499,6 +499,7 @@ static const STRUCT_USB_HOST_ID u3g_devs[] = {
 	U3G_DEV(QUANTA, Q111, 0),
 	U3G_DEV(QUECTEL, EC25, 0),
 	U3G_DEV(QUECTEL, EM05, 0),
+	U3G_DEV(QUECTEL, EM12_G, 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 5757f5f90e81..84ff3598750a 100644
--- a/sys/dev/usb/usbdevs
+++ b/sys/dev/usb/usbdevs
@@ -3952,6 +3952,7 @@ product QUANTA RW6815R		0xf003	HP iPAQ rw6815 RNDIS
 /* Quectel products */
 product QUECTEL EC25		0x0125	LTE modem
 product QUECTEL EM05		0x0127	LTE modem
+product QUECTEL EM12_G          0x0512  LTE modem
 
 /* Quickshot products */
 product QUICKSHOT STRIKEPAD	0x6238	USB StrikePad