[PATCH AUTOSEL 6.19-6.12] net: wwan: mhi: Add network support for Foxconn T99W760

Sasha Levin
2026-02-14T21:25:19Z

From: Slark Xiao <slark_xiao@163.com>

[ Upstream commit 915a5f60ad947e8dd515d2cc77a96a14dffb3f15 ]

T99W760 is designed based on Qualcomm SDX35 chip. It use similar
architecture with SDX72/SDX75 chip. So we need to assign initial
link id for this device to make sure network available.

Signed-off-by: Slark Xiao <slark_xiao@163.com>
Link: https://patch.msgid.link/20260105022646.10630-1-slark_xiao@163.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---

LLM Generated explanations, may be completely bogus:

## Analysis

### Commit Message Analysis

The commit adds network support for a new device, the Foxconn T99W760,
which is based on the Qualcomm SDX35 chip. The commit message explains
that this device uses a similar architecture to SDX72/SDX75 and needs an
initial link ID assignment to make networking functional.

### Code Change Analysis

The change is extremely minimal — a single line addition:

```c
strcmp(cntrl->name, "foxconn-t99w760") == 0)
```

This adds the "foxconn-t99w760" device name to the
`mhi_mbim_get_link_mux_id()` function so that it returns
`WDS_BIND_MUX_DATA_PORT_MUX_ID` instead of `0`. This is the same
treatment already given to "foxconn-dw5934e" and "foxconn-t99w640".

### Classification: Device ID / Hardware Enablement

This falls squarely into the **"New Device IDs"** exception category for
stable backports. It's adding support for a specific device to an
existing driver by matching its name and applying the same configuration
that other similar devices already use.

Without this change, users with the Foxconn T99W760 WWAN modem cannot
use networking — the device gets the wrong mux ID (0 instead of
`WDS_BIND_MUX_DATA_PORT_MUX_ID`), making the network interface non-
functional.

### Risk Assessment

- **Scope**: 1 line added, 1 file changed
- **Risk**: Extremely low — the change only affects devices matching the
exact name "foxconn-t99w760". No other hardware is affected.
- **Pattern**: Follows the exact same pattern as existing devices in the
same function
- **Complexity**: Trivial string comparison addition

### User Impact

Users with the Foxconn T99W760 WWAN modem (a real shipping hardware
device) cannot use network connectivity without this patch. This is a
real-world hardware enablement fix.

### Stability Assessment

- The driver (`mhi_wwan_mbim.c`) already exists in stable trees
- The function `mhi_mbim_get_link_mux_id()` already exists
- The pattern is identical to existing entries
- Zero risk of regression for any other hardware

### Dependencies

No dependencies on other commits. The change is entirely self-contained.

### Conclusion

This is a textbook device ID addition to an existing driver — one of the
explicitly allowed exception categories for stable backports. It enables
real hardware for real users, is trivially small, has zero regression
risk, and follows an established pattern in the same function.

**YES**

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 f8bc9a39bfa30..1d7e3ad900c12 100644
--- a/drivers/net/wwan/mhi_wwan_mbim.c
+++ b/drivers/net/wwan/mhi_wwan_mbim.c
@@ -98,7 +98,8 @@ static struct mhi_mbim_link *mhi_mbim_get_link_rcu(struct mhi_mbim_context *mbim
static int mhi_mbim_get_link_mux_id(struct mhi_controller *cntrl)
{
if (strcmp(cntrl->name, "foxconn-dw5934e") == 0 ||
- strcmp(cntrl->name, "foxconn-t99w640") == 0)
+ strcmp(cntrl->name, "foxconn-t99w640") == 0 ||
+ strcmp(cntrl->name, "foxconn-t99w760") == 0)
return WDS_BIND_MUX_DATA_PORT_MUX_ID;

return 0;
--
2.51.0