Linux USB
 help / color / mirror / Atom feed
From: netdev-bot+sashiko@kernel.org
To: sebastian.sjoholm@gmail.com
Cc: bjorn@mork.no, andrew+netdev@lunn.ch, davem@davemloft.net,
	edumazet@google.com, kuba@kernel.org, pabeni@redhat.com,
	netdev@vger.kernel.org, linux-usb@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH net] net: usb: qmi_wwan: add Quectel RG660QB
Date: Wed, 09 Sep 2026 06:03:14 +0000	[thread overview]
Message-ID: <178893379449.219967.12448568252331713076@kernel.org> (raw)
In-Reply-To: <20260903180044.6179-1-sebastian.sjoholm@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue(s) to consider:

Critical: 0 · High: 0 · Medium: 1 · Low: 0

- [Medium] Inaccurate commit message / incomplete composite-device
  support: the patch adds only the qmi_wwan match for Quectel RG660QB…

--

net: usb: qmi_wwan: add Quectel RG660QB

This adds a single qmi_wwan match for the Quectel RG660QB 5G module
(2c7c:013d) using QMI_MATCH_FF_FF_FF, i.e. the vendor-specific ff/ff/ff
QMI function only.  The commit message states that the remaining
interfaces of the device are handled by the option driver.

> diff --git a/drivers/net/usb/qmi_wwan.c b/drivers/net/usb/qmi_wwan.c
> index fdfdcf24ddcf8..f51cf9cb9421c 100644
> --- a/drivers/net/usb/qmi_wwan.c
> +++ b/drivers/net/usb/qmi_wwan.c
> @@ -1084,6 +1084,7 @@ static const struct usb_device_id products[] = {
>  	},
>  	{QMI_MATCH_FF_FF_FF(0x2c7c, 0x0122)},	/* Quectel RG650V */
>  	{QMI_MATCH_FF_FF_FF(0x2c7c, 0x0125)},	/* Quectel EC25, EC20 R2.0  Mini PCIe */
> +	{QMI_MATCH_FF_FF_FF(0x2c7c, 0x013d)},	/* Quectel RG660QB */

[Severity: Medium]
The commit message says:

    The remaining interfaces are handled by the option driver.

Is that true for this tree?  Grepping drivers/usb/serial/option.c at this
commit returns no entry for product id 0x013d, and every match in
option_ids[] in the Quectel block is per-product-id, so there is no
vendor-wide wildcard that could pick 2c7c:013d up:

drivers/usb/serial/option.c:option_ids[] {
	...
	{ USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_RG650V, 0xff, 0xff, 0x30) },
	{ USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_RG650V, 0xff, 0, 0) },
	...
}

The sibling modules referenced in the neighbouring qmi_wwan lines carry
that extra pair of option.c rows (RG650V for 0x0122, and 0x0620 for
EM160R-GL), but nothing equivalent is added here for 0x013d.

Since the other functions of the module also use vendor-specific class
0xff, cdc_acm will not claim them either, and qcserial only matches
0x05c6/0x1199.  Does that leave the AT/DM/NMEA/PPP interfaces of the
RG660QB unbound, with no /dev/ttyUSB* nodes appearing?

Should this either come with a companion option.c patch adding the
0x013d entries, or have the sentence about the option driver dropped or
reworded so the commit message matches what the tree actually contains?

-- 
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20260903180044.6179-1-sebastian.sjoholm%40gmail.com

      parent reply	other threads:[~2026-09-09  6:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-03 18:00 [PATCH net] net: usb: qmi_wwan: add Quectel RG660QB Sebastian Sjoholm
2026-09-08  0:40 ` patchwork-bot+netdevbpf
2026-09-09  6:03 ` netdev-bot+sashiko [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178893379449.219967.12448568252331713076@kernel.org \
    --to=netdev-bot+sashiko@kernel.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=bjorn@mork.no \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=sebastian.sjoholm@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox