Skip to contentSkip to conversation

Add a secondary AT port to the Telit FN990

PATCH Applied Fabio Porcedda 5 participants 9 messages Sep 16, 2022 – Oct 28, 2022

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

cover Add a secondary AT port to the Telit FN990

In order to add a secondary AT port to the Telit FN990 first add "DUN2" to mhi_wwan_ctrl.c, after that add a seconday AT port to the Telit FN990 in pci_generic.c

Fabio Porcedda (2):
net: wwan: mhi_wwan_ctrl: Add DUN2 to have a secondary AT port
bus: mhi: host: pci_generic: Add a secondary AT port to Telit FN990

 drivers/bus/mhi/host/pci_generic.c | 2 ++
 drivers/net/wwan/mhi_wwan_ctrl.c   | 1 +
 2 files changed, 3 insertions(+)
Signature · 1 line
2.37.3
#1 lore raw

PATCH 1/2 net: wwan: mhi_wwan_ctrl: Add DUN2 to have a secondary AT port

In order to have a secondary AT port add "DUN2".

---
 drivers/net/wwan/mhi_wwan_ctrl.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wwan/mhi_wwan_ctrl.c +1 -0
index e4d0f696687f..f7ca52353f40 100644
@@ -258,6 +258,7 @@ static void mhi_wwan_ctrl_remove(struct mhi_device *mhi_dev)
 
 static const struct mhi_device_id mhi_wwan_ctrl_match_table[] = {
 	{ .chan = "DUN", .driver_data = WWAN_PORT_AT },
+	{ .chan = "DUN2", .driver_data = WWAN_PORT_AT },
 	{ .chan = "MBIM", .driver_data = WWAN_PORT_MBIM },
 	{ .chan = "QMI", .driver_data = WWAN_PORT_QMI },
 	{ .chan = "DIAG", .driver_data = WWAN_PORT_QCDM },
Signature · 1 line
2.37.3
Reviewed-by on v1 1/2
#2 lore raw

Re: [PATCH 1/2] net: wwan: mhi_wwan_ctrl: Add DUN2 to have a secondary AT port

Quoted 4 lines · Fabio Porcedda

In order to have a secondary AT port add "DUN2".

Quoted 19 lines
---
 drivers/net/wwan/mhi_wwan_ctrl.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wwan/mhi_wwan_ctrl.c +1 -1
index e4d0f696687f..f7ca52353f40 100644
@@ -258,6 +258,7 @@ static void mhi_wwan_ctrl_remove(struct mhi_device *mhi_dev)
 
 static const struct mhi_device_id mhi_wwan_ctrl_match_table[] = {
        { .chan = "DUN", .driver_data = WWAN_PORT_AT },
+       { .chan = "DUN2", .driver_data = WWAN_PORT_AT },
        { .chan = "MBIM", .driver_data = WWAN_PORT_MBIM },
        { .chan = "QMI", .driver_data = WWAN_PORT_QMI },
        { .chan = "DIAG", .driver_data = WWAN_PORT_QCDM },
--

2.37.3

#3 lore raw

PATCH 2/2 bus: mhi: host: pci_generic: Add a secondary AT port to Telit FN990

In reply to Fabio Porcedda

Add a secondary AT port using one of OEM reserved channel.

---
 drivers/bus/mhi/host/pci_generic.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/bus/mhi/host/pci_generic.c +2 -0
index 51e2b901bae0..caa4ce28cf9e 100644
@@ -507,6 +507,8 @@ static const struct mhi_channel_config mhi_telit_fn990_channels[] = {
 	MHI_CHANNEL_CONFIG_DL(13, "MBIM", 32, 0),
 	MHI_CHANNEL_CONFIG_UL(32, "DUN", 32, 0),
 	MHI_CHANNEL_CONFIG_DL(33, "DUN", 32, 0),
+	MHI_CHANNEL_CONFIG_UL(92, "DUN2", 32, 1),
+	MHI_CHANNEL_CONFIG_DL(93, "DUN2", 32, 1),
 	MHI_CHANNEL_CONFIG_HW_UL(100, "IP_HW0_MBIM", 128, 2),
 	MHI_CHANNEL_CONFIG_HW_DL(101, "IP_HW0_MBIM", 128, 3),
 };
Signature · 1 line
2.37.3
Reviewed-by on v1 2/2
#4 lore raw

Re: [PATCH 2/2] bus: mhi: host: pci_generic: Add a secondary AT port to Telit FN990

Quoted 4 lines · Fabio Porcedda

Add a secondary AT port using one of OEM reserved channel.

Quoted 20 lines
---
 drivers/bus/mhi/host/pci_generic.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/bus/mhi/host/pci_generic.c +2 -1
index 51e2b901bae0..caa4ce28cf9e 100644
@@ -507,6 +507,8 @@ static const struct mhi_channel_config mhi_telit_fn990_channels[] = {
        MHI_CHANNEL_CONFIG_DL(13, "MBIM", 32, 0),
        MHI_CHANNEL_CONFIG_UL(32, "DUN", 32, 0),
        MHI_CHANNEL_CONFIG_DL(33, "DUN", 32, 0),
+       MHI_CHANNEL_CONFIG_UL(92, "DUN2", 32, 1),
+       MHI_CHANNEL_CONFIG_DL(93, "DUN2", 32, 1),
        MHI_CHANNEL_CONFIG_HW_UL(100, "IP_HW0_MBIM", 128, 2),
        MHI_CHANNEL_CONFIG_HW_DL(101, "IP_HW0_MBIM", 128, 3),
 };
--

2.37.3

maintainer Reviewed-by on v1 2/2
#5 lore raw

Re: [PATCH 2/2] bus: mhi: host: pci_generic: Add a secondary AT port to Telit FN990

In reply to Fabio Porcedda
Quoted 3 lines · Fabio Porcedda

Add a secondary AT port using one of OEM reserved channel.

Thanks,
Mani

Quoted 21 lines
---
 drivers/bus/mhi/host/pci_generic.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/bus/mhi/host/pci_generic.c +2 -0
index 51e2b901bae0..caa4ce28cf9e 100644
@@ -507,6 +507,8 @@ static const struct mhi_channel_config mhi_telit_fn990_channels[] = {
 	MHI_CHANNEL_CONFIG_DL(13, "MBIM", 32, 0),
 	MHI_CHANNEL_CONFIG_UL(32, "DUN", 32, 0),
 	MHI_CHANNEL_CONFIG_DL(33, "DUN", 32, 0),
+	MHI_CHANNEL_CONFIG_UL(92, "DUN2", 32, 1),
+	MHI_CHANNEL_CONFIG_DL(93, "DUN2", 32, 1),
 	MHI_CHANNEL_CONFIG_HW_UL(100, "IP_HW0_MBIM", 128, 2),
 	MHI_CHANNEL_CONFIG_HW_DL(101, "IP_HW0_MBIM", 128, 3),
 };
Signature · 1 line
2.37.3
Signature · 1 line
மணிவண்ணன் சதாசிவம்
maintainer Applied
#6 lore raw

Re: [PATCH 2/2] bus: mhi: host: pci_generic: Add a secondary AT port to Telit FN990

In reply to Fabio Porcedda
Quoted 3 lines · Fabio Porcedda

Add a secondary AT port using one of OEM reserved channel.

Applied to mhi-next!

Thanks,
Mani

Quoted 21 lines
---
 drivers/bus/mhi/host/pci_generic.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/bus/mhi/host/pci_generic.c +2 -0
index 51e2b901bae0..caa4ce28cf9e 100644
@@ -507,6 +507,8 @@ static const struct mhi_channel_config mhi_telit_fn990_channels[] = {
 	MHI_CHANNEL_CONFIG_DL(13, "MBIM", 32, 0),
 	MHI_CHANNEL_CONFIG_UL(32, "DUN", 32, 0),
 	MHI_CHANNEL_CONFIG_DL(33, "DUN", 32, 0),
+	MHI_CHANNEL_CONFIG_UL(92, "DUN2", 32, 1),
+	MHI_CHANNEL_CONFIG_DL(93, "DUN2", 32, 1),
 	MHI_CHANNEL_CONFIG_HW_UL(100, "IP_HW0_MBIM", 128, 2),
 	MHI_CHANNEL_CONFIG_HW_DL(101, "IP_HW0_MBIM", 128, 3),
 };
Signature · 1 line
2.37.3
Signature · 1 line
மணிவண்ணன் சதாசிவம்
maintainer
#7 lore raw
In reply to Fabio Porcedda

Hello Fabio,

Quoted 7 lines · Fabio Porcedda

In order to add a secondary AT port to the Telit FN990 first add "DUN2" to mhi_wwan_ctrl.c, after that add a seconday AT port to the Telit FN990 in pci_generic.c

Fabio Porcedda (2):
net: wwan: mhi_wwan_ctrl: Add DUN2 to have a secondary AT port
bus: mhi: host: pci_generic: Add a secondary AT port to Telit FN990

The code looks good to me, but it needs to be checked by someone who is familiar with MHI.

Loic, what do you think?

Signature · 1 line
Sergey
#8 lore raw
In reply to Fabio Porcedda
This series was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:

Hello:

This series was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:

Quoted 9 lines · On Fri, 16 Sep 2022 16:43:27 +0200 you wrote:

In order to add a secondary AT port to the Telit FN990 first add "DUN2" to mhi_wwan_ctrl.c, after that add a seconday AT port to the Telit FN990 in pci_generic.c

Fabio Porcedda (2):
net: wwan: mhi_wwan_ctrl: Add DUN2 to have a secondary AT port
bus: mhi: host: pci_generic: Add a secondary AT port to Telit FN990

[...]

Here is the summary with links:
- [1/2] net: wwan: mhi_wwan_ctrl: Add DUN2 to have a secondary AT port

    https://git.kernel.org/netdev/net-next/c/0c60d1657d3d
  - [2/2] bus: mhi: host: pci_generic: Add a secondary AT port to Telit FN990
    https://git.kernel.org/netdev/net-next/c/479aa3b0ec2e

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html