Skip to contentSkip to conversation

bus: mhi: Add mru_default for Cinterion MV31-W

PATCH Applied Slark Xiao 2 participants 3 messages Jan 19, 2022 – Jan 23, 2022

Subsystems (2)
lore
Share & tools
lore

Slark Xiao

author
#0 lore raw

PATCH 1/1 bus: mhi: Add mru_default for Cinterion MV31-W

For default mechanism, product would use default MRU 3500 if they didn't define it. But for Foxconn SDX55, there is a known issue which MRU 3500 would lead to data connection lost. So we align it with Qualcomm default MRU settings. We also validate it with Cinterion product and find it also works.

Fixes 87693e092bd0 ("bus: mhi: pci_generic: Add Cinterion MV31-W PCIe to MHI")
---
 drivers/bus/mhi/pci_generic.c | 1 +
 1 file changed, 1 insertion(+)
drivers/bus/mhi/pci_generic.c +1 -0
index 3a258a677df8..79c16b2a52c7 100644
@@ -401,6 +401,7 @@ static const struct mhi_pci_dev_info mhi_mv31_info = {
 	.config = &modem_mv31_config,
 	.bar_num = MHI_PCI_DEFAULT_BAR_NUM,
 	.dma_data_width = 32,
+	.mru_default = 32768,
 };
 
 static const struct mhi_channel_config mhi_sierra_em919x_channels[] = {
Signature · 1 line
2.25.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 2 lines · Slark Xiao

For default mechanism, product would use default MRU 3500 if they didn't define it. But for Foxconn SDX55, there is a known

s/"Foxconn SDX55"/"MV31-W (Cinterion)"/g

Will fix it while applying.

Quoted 7 lines

issue which MRU 3500 would lead to data connection lost. So we align it with Qualcomm default MRU settings. We also validate it with Cinterion product and find it also works.

Fixes 87693e092bd0 ("bus: mhi: pci_generic: Add Cinterion MV31-W PCIe to MHI")

Thanks,
Mani

Quoted 19 lines
---
 drivers/bus/mhi/pci_generic.c | 1 +
 1 file changed, 1 insertion(+)
drivers/bus/mhi/pci_generic.c +1 -0
index 3a258a677df8..79c16b2a52c7 100644
@@ -401,6 +401,7 @@ static const struct mhi_pci_dev_info mhi_mv31_info = {
 	.config = &modem_mv31_config,
 	.bar_num = MHI_PCI_DEFAULT_BAR_NUM,
 	.dma_data_width = 32,
+	.mru_default = 32768,
 };
 
 static const struct mhi_channel_config mhi_sierra_em919x_channels[] = {
Signature · 1 line
2.25.1
maintainer Applied
#2 lore raw
In reply to Slark Xiao
Quoted 9 lines · Slark Xiao

For default mechanism, product would use default MRU 3500 if they didn't define it. But for Foxconn SDX55, there is a known issue which MRU 3500 would lead to data connection lost. So we align it with Qualcomm default MRU settings. We also validate it with Cinterion product and find it also works.

Fixes 87693e092bd0 ("bus: mhi: pci_generic: Add Cinterion MV31-W PCIe to MHI")

Applied to mhi-next with slight commit message change.

Thanks,
Mani

Quoted 19 lines
---
 drivers/bus/mhi/pci_generic.c | 1 +
 1 file changed, 1 insertion(+)
drivers/bus/mhi/pci_generic.c +1 -0
index 3a258a677df8..79c16b2a52c7 100644
@@ -401,6 +401,7 @@ static const struct mhi_pci_dev_info mhi_mv31_info = {
 	.config = &modem_mv31_config,
 	.bar_num = MHI_PCI_DEFAULT_BAR_NUM,
 	.dma_data_width = 32,
+	.mru_default = 32768,
 };
 
 static const struct mhi_channel_config mhi_sierra_em919x_channels[] = {
Signature · 1 line
2.25.1