]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: wwan: mhi_wwan_mbim: use correct mux_id for multiplexing
authorDaniele Palmas <dnlplm@gmail.com>
Tue, 3 Jun 2025 09:12:04 +0000 (11:12 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2025 13:32:19 +0000 (15:32 +0200)
commit031f5c5ca09752accde0957a468fcd9aa760310c
treeb70afe6a3a46694269d0e412ec40c698e3e23f66
parent4f0fcdb8357d02d6b8af862866fcd57081ef8b92
net: wwan: mhi_wwan_mbim: use correct mux_id for multiplexing

[ Upstream commit 501fe52aa908c96f2c9b8d54767938a1a5960354 ]

Recent Qualcomm chipsets like SDX72/75 require MBIM sessionId mapping
to muxId in the range (0x70-0x8F) for the PCIe tethered use.

This has been partially addressed by the referenced commit, mapping
the default data call to muxId = 112, but the multiplexed data calls
scenario was not properly considered, mapping sessionId = 1 to muxId
1, while it should have been 113.

Fix this by moving the session_id assignment logic to mhi_mbim_newlink,
in order to map sessionId = n to muxId = n + WDS_BIND_MUX_DATA_PORT_MUX_ID.

Fixes: 65bc58c3dcad ("net: wwan: mhi: make default data link id configurable")
Signed-off-by: Daniele Palmas <dnlplm@gmail.com>
Reviewed-by: Loic Poulain <loic.poulain@oss.qualcomm.com>
Link: https://patch.msgid.link/20250603091204.2802840-1-dnlplm@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wwan/mhi_wwan_mbim.c