net: usb: cdc_mbim: add MeiG Smart SRM821 to ZLP whitelist
Subsystems (6)
PATCH v2 1/1 net: usb: cdc_mbim: add MeiG Smart SRM821 to ZLP whitelist
The MeiG Smart SRM821 5G module (0x2dee:0x4d53) crashes and drops off the USB bus when it receives a Zero Length Packet (ZLP) after sending or receiving an NTB of exactly 16384 bytes (tx_max).
According to the MBIM specification, devices do not require a ZLP if the NTB size is exactly dwNtbOutMaxSize. However, the cdc_mbim driver defaults to sending ZLPs for devices not explicitly whitelisted to accommodate non-conformant hardware. This default behavior breaks the strictly conformant MeiG SRM821 module.
Add this device to the ZLP conformance whitelist (cdc_mbim_info) so the driver will pad the NTB to avoid sending ZLPs, preventing the device firmware from crashing.
---
v2: moved MeiG entry below Ericsson for better grouping; added Cc stable
drivers/net/usb/cdc_mbim.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/net/usb/cdc_mbim.c +5 -0
@@ -635,6 +635,11 @@ static const struct usb_device_id mbim_devs[] = { .driver_info = (unsigned long)&cdc_mbim_info, }, +/* MeiG Smart SRM821 ZLP conformance */ + { USB_DEVICE_AND_INTERFACE_INFO(0x2dee, 0x4d53, USB_CLASS_COMM, USB_CDC_SUBCLASS_MBIM, USB_CDC_PROTO_NONE), + .driver_info = (unsigned long)&cdc_mbim_info, + }, +/* Some Huawei devices, ME906s-158 (12d1:15c1) and E3372 * (12d1:157d), are known to fail unless the NDP is placed * after the IP packets. Applying the quirk to all Huawei
Signature · 1 line
2.43.7
Paolo Abeni
maintainerQuoted 10 lines · Ming Wang
The MeiG Smart SRM821 5G module (0x2dee:0x4d53) crashes and drops off the USB bus when it receives a Zero Length Packet (ZLP) after sending or receiving an NTB of exactly 16384 bytes (
tx_max).According to the MBIM specification, devices do not require a ZLP if the NTB size is exactly dwNtbOutMaxSize. However, the
cdc_mbimdriver defaults to sending ZLPs for devices not explicitly whitelisted to accommodate non-conformant hardware. This default behavior breaks the strictly conformant MeiG SRM821 module.
Quoted 6 lines
Add this device to the ZLP conformance whitelist (
cdc_mbim_info) so the driver will pad the NTB to avoid sending ZLPs, preventing the device firmware from crashing.Signed-off-by Ming Wang <[email protected]>
Before any other step, please read:
https://elixir.bootlin.com/linux/v7.3-rc3/source/Documentation/process/maintainer-netdev.rst#L454
AFAICS this is actually support for additional H/W, just worded in very unusual way: please reword the commit message accordingly and drop stable from CC.
/P
Greg KH
maintainerQuoted 18 lines · Paolo Abeni
Quoted 10 lines · Ming Wang
The MeiG Smart SRM821 5G module (0x2dee:0x4d53) crashes and drops off the USB bus when it receives a Zero Length Packet (ZLP) after sending or receiving an NTB of exactly 16384 bytes (
tx_max).According to the MBIM specification, devices do not require a ZLP if the NTB size is exactly dwNtbOutMaxSize. However, the
cdc_mbimdriver defaults to sending ZLPs for devices not explicitly whitelisted to accommodate non-conformant hardware. This default behavior breaks the strictly conformant MeiG SRM821 module.Quoted 6 lines
Add this device to the ZLP conformance whitelist (
cdc_mbim_info) so the driver will pad the NTB to avoid sending ZLPs, preventing the device firmware from crashing.Signed-off-by Ming Wang <[email protected]>
Quoted 7 lines
Before any other step, please read:
https://elixir.bootlin.com/linux/v7.3-rc3/source/Documentation/process/maintainer-netdev.rst#L454
AFAICS this is actually support for additional H/W, just worded in very unusual way: please reword the commit message accordingly and drop stable from CC.
Why drop stable from cc:? Do you not want it in any stable kernel release? Seems like it should be to me, we gladly take quirk additions and new device ids in stable kernels.
thanks,
greg k-h
Jakub Kicinski
maintainerQuoted 7 lines · On Thu, 24 Sep 2026 16:22:54 +0200 Greg KH wrote:
Quoted 7 lines
Quoted 2 lines
Signed-off-by Ming Wang <[email protected]>Before any other step, please read:
https://elixir.bootlin.com/linux/v7.3-rc3/source/Documentation/process/maintainer-netdev.rst#L454
Quoted 7 lines
Quoted 3 lines
AFAICS this is actually support for additional H/W, just worded in very unusual way: please reword the commit message accordingly and drop stable from CC.
Why drop stable from cc:? Do you not want it in any stable kernel release? Seems like it should be to me, we gladly take quirk additions and new device ids in stable kernels.
the irony of telling someone to RTFM while not reading someone else's FM :)
Greg KH
maintainerQuoted 12 lines · Jakub Kicinski
Quoted 11 lines · On Thu, 24 Sep 2026 16:22:54 +0200 Greg KH wrote:
Quoted 10 lines
Quoted 2 lines
Signed-off-by Ming Wang <[email protected]>Before any other step, please read:
https://elixir.bootlin.com/linux/v7.3-rc3/source/Documentation/process/maintainer-netdev.rst#L454
AFAICS this is actually support for additional H/W, just worded in very unusual way: please reword the commit message accordingly and drop stable from CC.
Quoted 6 lines
Quoted 3 lines
Why drop stable from cc:? Do you not want it in any stable kernel release? Seems like it should be to me, we gladly take quirk additions and new device ids in stable kernels.
the irony of telling someone to RTFM while not reading someone else's FM :)
I did, and it says to keep stable tags, not to remove them, unlike the request here.
confused,
greg k-h
Jakub Kicinski
maintainerQuoted 17 lines · On Fri, 25 Sep 2026 07:12:06 +0200 Greg KH wrote:
Quoted 16 lines · Jakub Kicinski
Quoted 14 lines · On Thu, 24 Sep 2026 16:22:54 +0200 Greg KH wrote:
Quoted 10 lines
Quoted 2 lines
Signed-off-by Ming Wang <[email protected]>Before any other step, please read:
https://elixir.bootlin.com/linux/v7.3-rc3/source/Documentation/process/maintainer-netdev.rst#L454
AFAICS this is actually support for additional H/W, just worded in very unusual way: please reword the commit message accordingly and drop stable from CC.
Why drop stable from cc:? Do you not want it in any stable kernel release? Seems like it should be to me, we gladly take quirk additions and new device ids in stable kernels.
Quoted 5 lines
Quoted 2 lines
the irony of telling someone to RTFM while not reading someone else's FM :)
I did, and it says to keep stable tags, not to remove them, unlike the request here.
I meant Paolo did not read the stable one, sorry.
This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:
Quoted 11 lines · On Sun, 20 Sep 2026 15:44:59 +0800 you wrote:
The MeiG Smart SRM821 5G module (0x2dee:0x4d53) crashes and drops off the USB bus when it receives a Zero Length Packet (ZLP) after sending or receiving an NTB of exactly 16384 bytes (
tx_max).According to the MBIM specification, devices do not require a ZLP if the NTB size is exactly dwNtbOutMaxSize. However, the
cdc_mbimdriver defaults to sending ZLPs for devices not explicitly whitelisted to accommodate non-conformant hardware. This default behavior breaks the strictly conformant MeiG SRM821 module.[...]
Here is the summary with links:
- [v2] net: usb: cdc_mbim: add MeiG Smart SRM821 to ZLP whitelist
https://git.kernel.org/netdev/net/c/f75f21ef3628
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html