mirror of
https://github.com/FUjr/gl-infra-builder.git
synced 2025-12-16 09:10:02 +00:00
kernel: support-EM060K-and-EM05G
Signed-off-by: Yu Zhang <yu.zhang@gl-inet.com>
This commit is contained in:
parent
256ae371fa
commit
923ca6e1ab
@ -1,45 +1,43 @@
|
||||
From 5b31725ed990ad41ef7b4dd1bf101a66ccb95e53 Mon Sep 17 00:00:00 2001
|
||||
From: Yin Ni <yin.ni@gl-inet.com>
|
||||
Date: Tue, 11 Apr 2023 01:22:22 -0700
|
||||
Subject: [PATCH] Kernel: support-EM060K
|
||||
From efa85d197d8d0f3cb51b92e72b76a0929be949b0 Mon Sep 17 00:00:00 2001
|
||||
From: Yu Zhang <yu.zhang@gl-inet.com>
|
||||
Date: Wed, 14 Jun 2023 19:38:28 +0800
|
||||
Subject: [PATCH] kernel: support-EM060K-and-EM05G
|
||||
|
||||
Signed-off-by: Yin Ni <yin.ni@gl-inet.com>
|
||||
Signed-off-by: Yu Zhang <yu.zhang@gl-inet.com>
|
||||
---
|
||||
.../hack-5.10/921-support-EM060K-modem.patch | 48 +++++++++++++++++++
|
||||
1 file changed, 48 insertions(+)
|
||||
create mode 100644 target/linux/generic/hack-5.10/921-support-EM060K-modem.patch
|
||||
.../923-support-EM060K-and-EM05G-modem.patch | 45 +++++++++++++++++++
|
||||
1 file changed, 45 insertions(+)
|
||||
create mode 100644 target/linux/generic/hack-5.10/923-support-EM060K-and-EM05G-modem.patch
|
||||
|
||||
diff --git a/target/linux/generic/hack-5.10/921-support-EM060K-modem.patch b/target/linux/generic/hack-5.10/921-support-EM060K-modem.patch
|
||||
diff --git a/target/linux/generic/hack-5.10/923-support-EM060K-and-EM05G-modem.patch b/target/linux/generic/hack-5.10/923-support-EM060K-and-EM05G-modem.patch
|
||||
new file mode 100644
|
||||
index 0000000000..b46e016e8a
|
||||
index 0000000000..936c103ae4
|
||||
--- /dev/null
|
||||
+++ b/target/linux/generic/hack-5.10/921-support-EM060K-modem.patch
|
||||
@@ -0,0 +1,48 @@
|
||||
+Index: b/drivers/net/usb/qmi_wwan.c
|
||||
+===================================================================
|
||||
+++ b/target/linux/generic/hack-5.10/923-support-EM060K-and-EM05G-modem.patch
|
||||
@@ -0,0 +1,45 @@
|
||||
+--- a/drivers/net/usb/qmi_wwan.c
|
||||
++++ b/drivers/net/usb/qmi_wwan.c
|
||||
+@@ -1070,6 +1070,7 @@ static const struct usb_device_id produc
|
||||
+ {QMI_MATCH_FF_FF_FF(0x2c7c, 0x0512)}, /* Quectel EG12/EM12 */
|
||||
+@@ -1071,6 +1071,8 @@ static const struct usb_device_id produc
|
||||
+ {QMI_MATCH_FF_FF_FF(0x2c7c, 0x0620)}, /* Quectel EM160R-GL */
|
||||
+ {QMI_MATCH_FF_FF_FF(0x2c7c, 0x0800)}, /* Quectel RM500Q-GL */
|
||||
++ {QMI_MATCH_FF_FF_FF(0x2c7c, 0x030b)}, /* Quectel Quectel EM060K-GL EM120K-GL */
|
||||
+ {QMI_MATCH_FF_FF_FF(0x2c7c, 0x0801)}, /* Quectel RM520N */
|
||||
++ {QMI_MATCH_FF_FF_FF(0x2c7c, 0x030b)}, /* Quectel EM060K-GL EM120K-GL */
|
||||
++ {QMI_MATCH_FF_FF_FF(0x2c7c, 0x030e)}, /* Quectel EM05-G */
|
||||
+ {QMI_MATCH_FF_FF_FF(0x05c6, 0xf601)}, /* MeigLink SLM750 */
|
||||
+
|
||||
+Index: b/drivers/usb/serial/option.c
|
||||
+===================================================================
|
||||
+ /* 3. Combined interface devices matching on interface number */
|
||||
+--- a/drivers/usb/serial/option.c
|
||||
++++ b/drivers/usb/serial/option.c
|
||||
+@@ -633,6 +633,7 @@ static const struct usb_device_id option
|
||||
+@@ -646,6 +646,8 @@ static const struct usb_device_id option
|
||||
+ { USB_DEVICE(0x2C7C, 0x0296) }, /* Quectel BG96 */
|
||||
+ { USB_DEVICE(0x2C7C, 0x0435) }, /* Quectel AG35 */
|
||||
+ { USB_DEVICE(0x2C7C, 0x6026) }, /* Quectel EC200t */
|
||||
++ { USB_DEVICE(0x2C7C, 0x030b) }, /* Quectel EM060K-GL EM120K-GL */
|
||||
++ { USB_DEVICE(0x2C7C, 0x030e) }, /* Quectel EM05-G */
|
||||
+ #endif
|
||||
+ { USB_DEVICE(0x19d2, 0x0536) },/* MZ386 */
|
||||
+ { USB_DEVICE(0x19d2, 0x0117) },
|
||||
+@@ -2325,6 +2326,23 @@ static int option_probe(struct usb_seria
|
||||
+@@ -2364,6 +2366,22 @@ static int option_probe(struct usb_seria
|
||||
+ serial->dev->descriptor.idProduct == cpu_to_le16(0x6026) \
|
||||
+ && serial->interface->cur_altsetting->desc.bInterfaceNumber<= 1)
|
||||
+ return -ENODEV;
|
||||
@ -57,7 +55,6 @@ index 0000000000..b46e016e8a
|
||||
++ if (intf->bInterfaceNumber == 4 && intf->bNumEndpoints == 3
|
||||
++ && intf->bInterfaceSubClass == 0xFF && intf->bInterfaceProtocol == 0xFF)
|
||||
++ return -ENODEV;
|
||||
++
|
||||
++ }
|
||||
++ }
|
||||
+ #endif
|
||||
Loading…
Reference in New Issue
Block a user