* [PATCH v2] net: usb: cdc_mbim: add MeiG Smart SRM821 to ZLP whitelist
@ 2026-09-20 7:44 Ming Wang
2026-09-24 10:24 ` Paolo Abeni
2026-09-24 16:30 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 5+ messages in thread
From: Ming Wang @ 2026-09-20 7:44 UTC (permalink / raw)
To: netdev
Cc: linux-usb, stable, Ming Wang, Oliver Neukum, Andrew Lunn,
David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
linux-kernel
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.
Cc: stable@vger.kernel.org
Signed-off-by: Ming Wang <wangming01@loongson.cn>
---
v2: moved MeiG entry below Ericsson for better grouping; added Cc stable
drivers/net/usb/cdc_mbim.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/net/usb/cdc_mbim.c b/drivers/net/usb/cdc_mbim.c
index 877fb0ed7d3d..a7010a0664c7 100644
--- a/drivers/net/usb/cdc_mbim.c
+++ b/drivers/net/usb/cdc_mbim.c
@@ -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
--
2.43.7
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH v2] net: usb: cdc_mbim: add MeiG Smart SRM821 to ZLP whitelist
2026-09-20 7:44 [PATCH v2] net: usb: cdc_mbim: add MeiG Smart SRM821 to ZLP whitelist Ming Wang
@ 2026-09-24 10:24 ` Paolo Abeni
2026-09-24 14:22 ` Greg KH
2026-09-24 16:30 ` patchwork-bot+netdevbpf
1 sibling, 1 reply; 5+ messages in thread
From: Paolo Abeni @ 2026-09-24 10:24 UTC (permalink / raw)
To: Ming Wang, netdev
Cc: linux-usb, stable, Oliver Neukum, Andrew Lunn, David S. Miller,
Eric Dumazet, Jakub Kicinski, linux-kernel
On 9/20/26 09:44, Ming Wang 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_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.
>
> Cc: stable@vger.kernel.org
> Signed-off-by: Ming Wang <wangming01@loongson.cn>
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2] net: usb: cdc_mbim: add MeiG Smart SRM821 to ZLP whitelist
2026-09-24 10:24 ` Paolo Abeni
@ 2026-09-24 14:22 ` Greg KH
2026-09-24 16:28 ` Jakub Kicinski
0 siblings, 1 reply; 5+ messages in thread
From: Greg KH @ 2026-09-24 14:22 UTC (permalink / raw)
To: Paolo Abeni
Cc: Ming Wang, netdev, linux-usb, stable, Oliver Neukum, Andrew Lunn,
David S. Miller, Eric Dumazet, Jakub Kicinski, linux-kernel
On Thu, Sep 24, 2026 at 12:24:06PM +0200, Paolo Abeni wrote:
> On 9/20/26 09:44, Ming Wang 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_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.
> >
> > Cc: stable@vger.kernel.org
> > Signed-off-by: Ming Wang <wangming01@loongson.cn>
>
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2] net: usb: cdc_mbim: add MeiG Smart SRM821 to ZLP whitelist
2026-09-24 14:22 ` Greg KH
@ 2026-09-24 16:28 ` Jakub Kicinski
0 siblings, 0 replies; 5+ messages in thread
From: Jakub Kicinski @ 2026-09-24 16:28 UTC (permalink / raw)
To: Greg KH
Cc: Paolo Abeni, Ming Wang, netdev, linux-usb, stable, Oliver Neukum,
Andrew Lunn, David S. Miller, Eric Dumazet, linux-kernel
On Thu, 24 Sep 2026 16:22:54 +0200 Greg KH wrote:
> > > Cc: stable@vger.kernel.org
> > > Signed-off-by: Ming Wang <wangming01@loongson.cn>
> >
> > 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.
the irony of telling someone to RTFM while not reading
someone else's FM :)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2] net: usb: cdc_mbim: add MeiG Smart SRM821 to ZLP whitelist
2026-09-20 7:44 [PATCH v2] net: usb: cdc_mbim: add MeiG Smart SRM821 to ZLP whitelist Ming Wang
2026-09-24 10:24 ` Paolo Abeni
@ 2026-09-24 16:30 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 5+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-09-24 16:30 UTC (permalink / raw)
To: Ming Wang
Cc: netdev, linux-usb, stable, oliver, andrew+netdev, davem,
edumazet, kuba, pabeni, linux-kernel
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
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_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.
>
> [...]
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!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-09-24 16:31 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-20 7:44 [PATCH v2] net: usb: cdc_mbim: add MeiG Smart SRM821 to ZLP whitelist Ming Wang
2026-09-24 10:24 ` Paolo Abeni
2026-09-24 14:22 ` Greg KH
2026-09-24 16:28 ` Jakub Kicinski
2026-09-24 16:30 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®