Re: [PATCH RFC v2] bus: mhi: host: pci_generic: Add MBIM-mode config for generic SDX65

From: Manivannan Sadhasivam

Date: Tue Dec 01 2026 - 12:10:53 EST


On 2026-11-10 20:06 -0500, Haipeng Lin wrote:
> The Surface Pro 11 5G carries an SDX65 that enumerates with Qualcomm's
> generic IDs (17cb:0308, subsystem 17cb:0308) but runs the MBIM-mode
> firmware it ships with for Windows.
>
> Control is MBIM only (the QMI channel never answers), and data on
> channels 100/101 is framed as MBIM NTBs: the modem reports a WDA data
> format of raw IP with MBIM aggregation, up to 32 KiB downlink.
>
> The generic qcom-sdx65m entry names channels 100/101 "IP_HW0", which
> binds mhi_net. mhi_net expects raw IP, so no data session can work.
> The MBIM-mode modules in this driver name them "IP_HW0_MBIM" instead
> which binds mhi_wwan_mbim.
>
> Boards with a Qualcomm-ID modem in MBIM mode have so far been told
> apart by subsystem ID, like the SC8280XP CRD's SDX55 (17cb:010c).
> This modem carries the generic subsystem ID, so select an MBIM
> configuration by machine compatible instead.
>
> Like the SC8280XP CRD entry, reuse the Foxconn SDX55 channel config
> which works with this firmware. The MRU is 32 KiB to match the
> modem's downlink aggregation size.
>
> Tested on a Surface Pro 11 5G (Surface_Pro_with_5G_11th_Edition_2077,
> modem firmware 251216-DE-dc49bb9-00197) on a v7.2.11-based kernel:
> ModemManager registers the modem on wwan0mbim0, uses wwan0 for data and
> wwan0at0 for AT commands, and connects over LTE and 5G NR.
>
> Assisted-by: LLM
> Signed-off-by: Haipeng Lin <jimmie.lin@xxxxxxxxx>
> ---
> Hi Mani and Jeff,
>
> A follow-up to the RFC I sent last month (linked below).
>
> I tested the Foxconn SDX55 channel configuration on this modem and it
> works, so v2 reuses it like the SC8280XP CRD entry does, and only the
> selection is new. Hope this makes the patch clearer.
>
> I would appreciate comments on whether matching the machine compatible
> in probe is the acceptable approach, or if you would prefer a property
> on the PCIe endpoint's DT node (although that would be a bigger patch)
>

Sorry for the delay. Got held up with business travel. I've just replied to your
RFC: https://lore.kernel.org/mhi/179614425365.121678.10359650275079684909.b4-reply@b4/

- Mani