netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 2/2] net: wwan: Fix SDX72 ping failure issue
@ 2024-06-07 10:03 Slark Xiao
  2024-06-07 22:28 ` Sergey Ryazanov
  0 siblings, 1 reply; 6+ messages in thread
From: Slark Xiao @ 2024-06-07 10:03 UTC (permalink / raw)
  To: loic.poulain, ryazanov.s.a
  Cc: netdev, linux-kernel, manivannan.sadhasivam, Slark Xiao

For SDX72 MBIM device, it starts data mux id from 112 instead of 0.
This would lead to device can't ping outside successfully.
Also MBIM side would report "bad packet session (112)".
So we add a link id default value for these SDX72 products which
works in MBIM mode.

Signed-off-by: Slark Xiao <slark_xiao@163.com>
---
 drivers/net/wwan/mhi_wwan_mbim.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/wwan/mhi_wwan_mbim.c b/drivers/net/wwan/mhi_wwan_mbim.c
index 3f72ae943b29..4ca5c845394b 100644
--- a/drivers/net/wwan/mhi_wwan_mbim.c
+++ b/drivers/net/wwan/mhi_wwan_mbim.c
@@ -618,7 +618,8 @@ static int mhi_mbim_probe(struct mhi_device *mhi_dev, const struct mhi_device_id
 	mbim->rx_queue_sz = mhi_get_free_desc_count(mhi_dev, DMA_FROM_DEVICE);
 
 	/* Register wwan link ops with MHI controller representing WWAN instance */
-	return wwan_register_ops(&cntrl->mhi_dev->dev, &mhi_mbim_wwan_ops, mbim, 0);
+	return wwan_register_ops(&cntrl->mhi_dev->dev, &mhi_mbim_wwan_ops, mbim,
+		mhi_dev->mhi_cntrl->link_id ? mhi_dev->mhi_cntrl->link_id : 0);
 }
 
 static void mhi_mbim_remove(struct mhi_device *mhi_dev)
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-06-12  4:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-07 10:03 [PATCH v1 2/2] net: wwan: Fix SDX72 ping failure issue Slark Xiao
2024-06-07 22:28 ` Sergey Ryazanov
2024-06-11  1:36   ` Slark Xiao
2024-06-11 22:46     ` Sergey Ryazanov
2024-06-12  3:05       ` Slark Xiao
2024-06-12  4:26         ` manivannan.sadhasivam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).