From: Johan Hovold <johan@kernel.org>
To: Duke Xin <duke_xinanwen@163.com>
Cc: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org,
linux-kernel@vger.kernel.org, jerry.meng@quectel.com,
duke.xin@quectel.com
Subject: Re: [PATCH] USB: serial: option: add Quectel EM05-G modem
Date: Fri, 25 Nov 2022 10:26:27 +0100 [thread overview]
Message-ID: <Y4CKQ50Ao9HZ9mbW@hovoldconsulting.com> (raw)
In-Reply-To: <20221119094447.874770-1-duke_xinanwen@163.com>
On Sat, Nov 19, 2022 at 05:44:47PM +0800, Duke Xin wrote:
> The EM05-G modem has 2 USB configurations that are configurable via the AT
> command AT+QCFG="usbnet",[ 0 | 2 ] which make the modem enumerate with
> the following interfaces, respectively:
>
> "RMNET" : AT + DIAG + NMEA + Modem + QMI
> "MBIM" : MBIM + AT + DIAG + NMEA + Modem
>
> The detailed description of the USB configuration for each mode as follows:
...
> Signed-off-by: Duke Xin <duke_xinanwen@163.com>
> ---
This looks much better, thanks!
In the future, when updating a patch you should include a changelog here
below the '---' line and the patch revision should be indicated in the
Subject prefix (e.g. this should have been "[PATCH v3]: USB: serial:
...").
> drivers/usb/serial/option.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c
> index c3b7f1d98e78..fc14df5033d8 100644
> --- a/drivers/usb/serial/option.c
> +++ b/drivers/usb/serial/option.c
> @@ -254,6 +254,7 @@ static void option_instat_callback(struct urb *urb);
> #define QUECTEL_PRODUCT_BG96 0x0296
> #define QUECTEL_PRODUCT_EP06 0x0306
> #define QUECTEL_PRODUCT_EM05G 0x030a
> +#define QUECTEL_PRODUCT_EM05G_SG 0x0311
These defines should be sorted by PID.
> #define QUECTEL_PRODUCT_EM060K 0x030b
> #define QUECTEL_PRODUCT_EM12 0x0512
> #define QUECTEL_PRODUCT_RM500Q 0x0800
> @@ -1160,6 +1161,8 @@ static const struct usb_device_id option_ids[] = {
> { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EP06, 0xff, 0, 0) },
> { USB_DEVICE_INTERFACE_CLASS(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EM05G, 0xff),
> .driver_info = RSVD(6) | ZLP },
> + { USB_DEVICE_INTERFACE_CLASS(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EM05G_SG, 0xff),
> + .driver_info = RSVD(6) | ZLP },
And you have some stray whitespace after the comma here, which would
have been picked up by scripts/checkpatch.pl which you should run on
your patches before submitting them.
> { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EM060K, 0xff, 0x00, 0x40) },
> { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EM060K, 0xff, 0xff, 0x30) },
> { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EM060K, 0xff, 0xff, 0x40) },
I've fixed up the above nits (sort order and white space) and applied
this one for 6.2 now so you don't need to send a v4 this time.
Johan
next prev parent reply other threads:[~2022-11-25 9:27 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-19 9:44 Duke Xin
2022-11-25 9:26 ` Johan Hovold [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-12-27 9:51 Duke Xin(辛安文)
2023-01-12 16:48 ` Johan Hovold
2022-12-27 9:44 Duke Xin(辛安文)
2022-12-27 9:28 Duke Xin(辛安文)
2023-01-12 16:36 ` Johan Hovold
[not found] <20221116105554.329246-1-duke_xinanwen@163.com>
2022-11-16 11:31 ` Greg KH
2022-11-16 5:25 Duke Xin
2022-11-16 6:01 ` Greg KH
2022-11-11 3:56 Duke Xin
2022-11-15 10:04 ` Johan Hovold
2022-06-20 12:16 Yonglin Tan
2022-06-20 12:57 ` 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=Y4CKQ50Ao9HZ9mbW@hovoldconsulting.com \
--to=johan@kernel.org \
--cc=duke.xin@quectel.com \
--cc=duke_xinanwen@163.com \
--cc=gregkh@linuxfoundation.org \
--cc=jerry.meng@quectel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
/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
all inboxes | Powered by JetHome®