From: Lars Melin <larsm17@gmail.com>
To: "Benjamin B. Frost" <benjamin@geanix.com>, linux-usb@vger.kernel.org
Cc: sean@geanix.com, martin@geanix.com, johan@kernel.org
Subject: Re: [PATCH] USB: serial: option: support for Quectel EG916Q-GL
Date: Tue, 10 Sep 2024 19:26:24 +0700 [thread overview]
Message-ID: <d4b02fcb-6476-4a67-bc07-e6a224891b20@gmail.com> (raw)
In-Reply-To: <20240910073050.2619669-1-benjamin@geanix.com>
On 2024-09-10 14:30, Benjamin B. Frost wrote:
> Add Quectel EM916Q-GL with product ID 0x6007
>
> T: Bus=01 Lev=02 Prnt=02 Port=01 Cnt=01 Dev#= 3 Spd=480 MxCh= 0
> D: Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1
> P: Vendor=2c7c ProdID=6007 Rev= 2.00
> S: Manufacturer=Quectel
> S: Product=EG916Q-GL
> C:* #Ifs= 6 Cfg#= 1 Atr=a0 MxPwr=200mA
> A: FirstIf#= 4 IfCount= 2 Cls=02(comm.) Sub=06 Prot=00
> I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
> E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
> E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
> I:* If#= 1 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
> E: Ad=82(I) Atr=03(Int.) MxPS= 16 Ivl=32ms
> E: Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
> E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
> I:* If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
> E: Ad=84(I) Atr=03(Int.) MxPS= 16 Ivl=32ms
> E: Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
> E: Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
> I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
> E: Ad=86(I) Atr=03(Int.) MxPS= 16 Ivl=32ms
> E: Ad=87(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
> E: Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
> I:* If#= 4 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=06 Prot=00 Driver=option
> E: Ad=88(I) Atr=03(Int.) MxPS= 32 Ivl=32ms
> I:* If#= 5 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=00 Driver=option
> I: If#= 5 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=option
> E: Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
> E: Ad=89(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
>
> Signed-off-by: Benjamin B. Frost <benjamin@geanix.com>
> ---
> drivers/usb/serial/option.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c
> index 176f38750ad5..8ff9f1435c2f 100644
> --- a/drivers/usb/serial/option.c
> +++ b/drivers/usb/serial/option.c
> @@ -279,6 +279,7 @@ static void option_instat_callback(struct urb *urb);
> #define QUECTEL_PRODUCT_EG912Y 0x6001
> #define QUECTEL_PRODUCT_EC200S_CN 0x6002
> #define QUECTEL_PRODUCT_EC200A 0x6005
> +#define QUECTEL_PRODUCT_EG916Q 0x6007
> #define QUECTEL_PRODUCT_EM061K_LWW 0x6008
> #define QUECTEL_PRODUCT_EM061K_LCN 0x6009
> #define QUECTEL_PRODUCT_EC200T 0x6026
> @@ -1271,6 +1272,7 @@ static const struct usb_device_id option_ids[] = {
> { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EC200T, 0xff, 0, 0) },
> { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EG912Y, 0xff, 0, 0) },
> { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_RM500K, 0xff, 0x00, 0x00) },
> + { USB_DEVICE(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EG916Q) },
>
> { USB_DEVICE(CMOTECH_VENDOR_ID, CMOTECH_PRODUCT_6001) },
> { USB_DEVICE(CMOTECH_VENDOR_ID, CMOTECH_PRODUCT_CMU_300) },
Hi,
sorry but that is not correct. Interface 4 and 5 should be handled by
the cdc_ether driver, not by the option driver. You need to use the
USB_DEVICE_AND_INTERFACE_INFO macro exactly as in the 3 Quectel devices
above your entry.
thanks
Lars
next prev parent reply other threads:[~2024-09-10 12:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-10 7:30 [PATCH] USB: serial: option: support for Quectel EG916Q-GL Benjamin B. Frost
2024-09-10 12:26 ` Lars Melin [this message]
2024-09-11 8:54 ` [PATCH v2] " Benjamin B. Frost
2024-09-11 11:46 ` Lars Melin
2024-10-17 14:36 ` Johan Hovold
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=d4b02fcb-6476-4a67-bc07-e6a224891b20@gmail.com \
--to=larsm17@gmail.com \
--cc=benjamin@geanix.com \
--cc=johan@kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=martin@geanix.com \
--cc=sean@geanix.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;
as well as URLs for NNTP newsgroup(s).