[PATCH v1 3/4] generic: add DTR quirk patch for MR400 LTE

Filip Moc lede at moc6.cz
Tue Nov 17 06:33:26 EST 2020


This is required for LTE module MR400 in TL-MR6400 v4.

Signed-off-by: Filip Moc <lede at moc6.cz>
---

Notes:
    Perhaps it would be better to go upstream with this?

 ...usb-qmi_wwan-Set-DTR-quirk-for-MR400.patch | 28 +++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 target/linux/generic/hack-5.4/789-net-usb-qmi_wwan-Set-DTR-quirk-for-MR400.patch

diff --git a/target/linux/generic/hack-5.4/789-net-usb-qmi_wwan-Set-DTR-quirk-for-MR400.patch b/target/linux/generic/hack-5.4/789-net-usb-qmi_wwan-Set-DTR-quirk-for-MR400.patch
new file mode 100644
index 0000000000..9c15f01345
--- /dev/null
+++ b/target/linux/generic/hack-5.4/789-net-usb-qmi_wwan-Set-DTR-quirk-for-MR400.patch
@@ -0,0 +1,28 @@
+From a661d0b88c6de286f0b861ace670cb31776aadd6 Mon Sep 17 00:00:00 2001
+From: Filip Moc <lede at moc6.cz>
+Date: Wed, 11 Nov 2020 20:39:09 +0100
+Subject: [PATCH] net: usb: qmi_wwan: Set DTR quirk for MR400
+
+LTE module MR400 embedded in TL-MR6400 v4 requires DTR to be set.
+
+Signed-off-by: Filip Moc <lede at moc6.cz>
+---
+ drivers/net/usb/qmi_wwan.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/net/usb/qmi_wwan.c b/drivers/net/usb/qmi_wwan.c
+index 21d905d..da6f10a 100644
+--- a/drivers/net/usb/qmi_wwan.c
++++ b/drivers/net/usb/qmi_wwan.c
+@@ -1092,7 +1092,7 @@ static const struct usb_device_id products[] = {
+ 	{QMI_FIXED_INTF(0x05c6, 0x9011, 4)},
+ 	{QMI_FIXED_INTF(0x05c6, 0x9021, 1)},
+ 	{QMI_FIXED_INTF(0x05c6, 0x9022, 2)},
+-	{QMI_FIXED_INTF(0x05c6, 0x9025, 4)},	/* Alcatel-sbell ASB TL131 TDD LTE  (China Mobile) */
++	{QMI_QUIRK_SET_DTR(0x05c6, 0x9025, 4)},	/* Alcatel-sbell ASB TL131 TDD LTE  (China Mobile) */
+ 	{QMI_FIXED_INTF(0x05c6, 0x9026, 3)},
+ 	{QMI_FIXED_INTF(0x05c6, 0x902e, 5)},
+ 	{QMI_FIXED_INTF(0x05c6, 0x9031, 5)},
+-- 
+2.28.0
+
-- 
2.28.0




More information about the openwrt-devel mailing list