diff mbox series

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

Message ID bbdd6e61308ac0a94be5e45a8f33716d3d72b7ba.1605364389.git.lede@moc6.cz
State Superseded
Headers show
Series [v1,1/4] uqmi: add support for IPv4 autoconf from QMI | expand

Commit Message

Filip Moc Nov. 17, 2020, 11:33 a.m. UTC
This is required for LTE module MR400 in TL-MR6400 v4.

Signed-off-by: Filip Moc <lede@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

Comments

Adrian Schmutzler Nov. 17, 2020, 11:55 a.m. UTC | #1
Hi,

> -----Original Message-----
> From: openwrt-devel [mailto:openwrt-devel-bounces@lists.openwrt.org]
> On Behalf Of Filip Moc
> Sent: Dienstag, 17. November 2020 12:33
> To: openwrt-devel@lists.openwrt.org
> Subject: [PATCH v1 3/4] generic: add DTR quirk patch for MR400 LTE
> 
> This is required for LTE module MR400 in TL-MR6400 v4.
> 
> Signed-off-by: Filip Moc <lede@moc6.cz>
> ---
> 
> Notes:
>     Perhaps it would be better to go upstream with this?

Always :-)

If accepted, you could add it in the backports folder ...

Best

Adrian

> 
>  ...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-
> f
> +++ or-MR400.patch
> @@ -0,0 +1,28 @@
> +From a661d0b88c6de286f0b861ace670cb31776aadd6 Mon Sep 17 00:00:00
> 2001
> +From: Filip Moc <lede@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@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
> 
> 
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Filip Moc Nov. 18, 2020, 8:15 p.m. UTC | #2
Hi,

> If accepted, you could add it in the backports folder ...

so far we're here:
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=df8d85d8c69d6837817e54dcb73c84a8b5a13877

but I guess that qualifies for pending and not for backports?

Filip
diff mbox series

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@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@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
+