Message ID | 20201120081653.GA578770@moc6.cz |
---|---|
State | Not Applicable |
Headers | show |
Series | [v2] generic: add DTR quirk patch for MR400 LTE | expand |
Ignore this one please. I forgot 3/4. Filip On Fri, Nov 20, 2020 at 09:16:53AM +0100, Filip Moc wrote: > This is required for LTE module MR400 in TL-MR6400 v4. > > Signed-off-by: Filip Moc <lede@moc6.cz> > --- > > Notes: > v1->v2: > - Moved from hack to backports > > Upstream commit: > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=df8d85d8c69d6837817e54dcb73c84a8b5a13877 > > ...usb-qmi_wwan-Set-DTR-quirk-for-MR400.patch | 34 +++++++++++++++++++ > 1 file changed, 34 insertions(+) > create mode 100644 target/linux/generic/backport-5.4/789-net-usb-qmi_wwan-Set-DTR-quirk-for-MR400.patch > > diff --git a/target/linux/generic/backport-5.4/789-net-usb-qmi_wwan-Set-DTR-quirk-for-MR400.patch b/target/linux/generic/backport-5.4/789-net-usb-qmi_wwan-Set-DTR-quirk-for-MR400.patch > new file mode 100644 > index 0000000000..91c95573f6 > --- /dev/null > +++ b/target/linux/generic/backport-5.4/789-net-usb-qmi_wwan-Set-DTR-quirk-for-MR400.patch > @@ -0,0 +1,34 @@ > +From df8d85d8c69d6837817e54dcb73c84a8b5a13877 Mon Sep 17 00:00:00 2001 > +From: Filip Moc <dev@moc6.cz> > +Date: Tue, 17 Nov 2020 18:36:31 +0100 > +Subject: net: usb: qmi_wwan: Set DTR quirk for MR400 > +MIME-Version: 1.0 > +Content-Type: text/plain; charset=UTF-8 > +Content-Transfer-Encoding: 8bit > + > +LTE module MR400 embedded in TL-MR6400 v4 requires DTR to be set. > + > +Signed-off-by: Filip Moc <dev@moc6.cz> > +Acked-by: Bjørn Mork <bjorn@mork.no> > +Link: https://lore.kernel.org/r/20201117173631.GA550981@moc6.cz > +Signed-off-by: Jakub Kicinski <kuba@kernel.org> > +--- > + 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 581ed51abb532..fc378ff56775b 100644 > +--- a/drivers/net/usb/qmi_wwan.c > ++++ b/drivers/net/usb/qmi_wwan.c > +@@ -1070,7 +1070,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)}, > +-- > +cgit 1.2.3-1.el7 > + > -- > 2.28.0 >
diff --git a/target/linux/generic/backport-5.4/789-net-usb-qmi_wwan-Set-DTR-quirk-for-MR400.patch b/target/linux/generic/backport-5.4/789-net-usb-qmi_wwan-Set-DTR-quirk-for-MR400.patch new file mode 100644 index 0000000000..91c95573f6 --- /dev/null +++ b/target/linux/generic/backport-5.4/789-net-usb-qmi_wwan-Set-DTR-quirk-for-MR400.patch @@ -0,0 +1,34 @@ +From df8d85d8c69d6837817e54dcb73c84a8b5a13877 Mon Sep 17 00:00:00 2001 +From: Filip Moc <dev@moc6.cz> +Date: Tue, 17 Nov 2020 18:36:31 +0100 +Subject: net: usb: qmi_wwan: Set DTR quirk for MR400 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +LTE module MR400 embedded in TL-MR6400 v4 requires DTR to be set. + +Signed-off-by: Filip Moc <dev@moc6.cz> +Acked-by: Bjørn Mork <bjorn@mork.no> +Link: https://lore.kernel.org/r/20201117173631.GA550981@moc6.cz +Signed-off-by: Jakub Kicinski <kuba@kernel.org> +--- + 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 581ed51abb532..fc378ff56775b 100644 +--- a/drivers/net/usb/qmi_wwan.c ++++ b/drivers/net/usb/qmi_wwan.c +@@ -1070,7 +1070,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)}, +-- +cgit 1.2.3-1.el7 +
This is required for LTE module MR400 in TL-MR6400 v4. Signed-off-by: Filip Moc <lede@moc6.cz> --- Notes: v1->v2: - Moved from hack to backports Upstream commit: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=df8d85d8c69d6837817e54dcb73c84a8b5a13877 ...usb-qmi_wwan-Set-DTR-quirk-for-MR400.patch | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 target/linux/generic/backport-5.4/789-net-usb-qmi_wwan-Set-DTR-quirk-for-MR400.patch