From: Johan Hovold <johan@kernel.org>
To: hu.bin309@zte.com.cn
Cc: Johan Hovold <johan@kernel.org>,
linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Johan Hovold <jhovold@gmail.com>,
Konstantin Ryabitsev <konstantin@linuxfoundation.org>,
liu.zhao1@zte.com.cn, yang.haojun3@zte.com.cn,
zhang.yile@zte.com.cn, lu.daming@zte.com.cn, xia.bin5@zte.com.cn,
xia.yue@zte.com.cn
Subject: Re: I have run scripts/checkpatch.pl on my patch.The new patch attachment is at the bottom.//Re: We want to add commit device's PID,the following is the content of the patch.Patch attachment is at the bottom.
Date: Thu, 30 Jul 2015 16:16:52 +0200 [thread overview]
Message-ID: <20150730141652.GA10793@localhost> (raw)
In-Reply-To: <OF92A6AC03.0584F3B1-ON48257E90.00393CC0-48257E90.003C0DAF@zte.com.cn>
On Tue, Jul 28, 2015 at 06:55:57PM +0800, hu.bin309@zte.com.cn wrote:
> Dear Johan:
> Thank you for your reply me so quickly.
> As you say, I have done the following test and verify:
> 1.I have run scripts/checkpatch.pl on my patch,and test result is OK.
> 2. I have installed this patch,and test result is OK.
> 3.I have compiled the kernel code contains patch, and verified the
> patch is correct.
> 4.I have uninstall this patch,and test result is OK.
>
> The following is the new file attachment.If there anything is incorrect,
> please let me know immediately,thank you.
Yes, please address the review comments below before resending in a
format that can be applied (send the patch as an inline mail, not as a
mime-attachment). And fix up the patch summary.
> On Sat, Jul 25, 2015 at 10:53:22AM +0800, hu.bin309@zte.com.cn wrote:
> > Dear all:
> > We want to add commit device's PID,we have been verified,the
> > following is the content of the patch,If there anything is incorrect,
> > please let me know immediately, thank you.
>
> Please read Documentation/SubmittingPatches for information on how to
> format and submit a patch.
>
> Try sending the patch to yourself first and make sure to run
> scripts/checkpatch.pl on it afterwards.
>
> For an example what such a patch may look like, see:
>
>
> https://lkml.kernel.org/r/1413276457-19486-1-git-send-email-dnlplm@gmail.com
>
>
> > diff -urN ./linux-4.1.2/drivers/usb/serial/option.c
> > ./linux-4.1.2_plus/drivers/usb/serial/option.c
> > --- ./linux-4.1.2/drivers/usb/serial/option.c 2015-07-10
> > 12:50:06.000000000 -0400
> > +++ ./linux-4.1.2_plus/drivers/usb/serial/option.c 2015-07-24
> > 21:10:02.075090212 -0400
> > @@ -285,6 +285,10 @@
> > #define ZTE_PRODUCT_MC2718 0xffe8
> > #define ZTE_PRODUCT_AD3812 0xffeb
> > #define ZTE_PRODUCT_MC2716 0xffed
> > +#define ZTE_PRODUCT_ZM8620_X 0x0396
> > +#define ZTE_PRODUCT_ME3620_X 0x1432
> > +#define ZTE_PRODUCT_ME3620_L 0x1433
> > +#define ZTE_PRODUCT_ME3620_MBIM 0x0426
>
> Try to keep the entries ordered by PID.
>
> > #define BENQ_VENDOR_ID 0x04a5
> > #define BENQ_PRODUCT_H10 0x4068
> > @@ -544,6 +548,23 @@
> > .sendsetup = BIT(1) | BIT(2) | BIT(3),
> > };
> >
> > +static const struct option_blacklist_info zte_zm8620_x_blacklist = {
> > + .reserved = BIT(3) | BIT(4) | BIT(5),
> > +};
> > +
> > +static const struct option_blacklist_info zte_me3620_x_blacklist = {
> > + .reserved = BIT(3) | BIT(4) | BIT(5),
> > +};
> > +
> > +static const struct option_blacklist_info zte_me3620_l_blacklist = {
> > + .reserved = BIT(3) | BIT(4) | BIT(5),
> > +};
>
> Could you reuse the same blacklist for related devices perhaps?
>
> > +static const struct option_blacklist_info zte_me3620_mbim_blacklist = {
> > + .reserved = BIT(2) | BIT(3) | BIT(4),
> > +};
>
> And try to keep blacklist entries you add sorted by symbol name.
>
> > +
> > +
> > static const struct option_blacklist_info huawei_cdc12_blacklist = {
> > .reserved = BIT(1) | BIT(2),
> > };
> > @@ -1592,6 +1613,14 @@
> > { USB_VENDOR_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0xff, 0x02, 0x01)
>
> > },
> > { USB_VENDOR_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0xff, 0x02, 0x05)
>
> > },
> > { USB_VENDOR_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0xff, 0x86, 0x10)
>
> > },
> > + { USB_DEVICE(ZTE_VENDOR_ID, ZTE_PRODUCT_ZM8620_X),
> > + .driver_info = (kernel_ulong_t)&zte_zm8620_x_blacklist
> },
> > + { USB_DEVICE(ZTE_VENDOR_ID, ZTE_PRODUCT_ME3620_X),
> > + .driver_info = (kernel_ulong_t)&zte_me3620_x_blacklist
> },
> > + { USB_DEVICE(ZTE_VENDOR_ID, ZTE_PRODUCT_ME3620_L),
> > + .driver_info = (kernel_ulong_t)&zte_me3620_l_blacklist
> },
> > + { USB_DEVICE(ZTE_VENDOR_ID, ZTE_PRODUCT_ME3620_MBIM),
> > + .driver_info =
> (kernel_ulong_t)&zte_me3620_mbim_blacklist
> > },
>
> Should be sorted by PID symbol whenever possible.
>
> > { USB_DEVICE(BENQ_VENDOR_ID, BENQ_PRODUCT_H10) },
> > { USB_DEVICE(DLINK_VENDOR_ID, DLINK_PRODUCT_DWM_652) },
> >
> >
> >
> >
> > 一一一一一一一一一一一一一一一一一一一一一一一
> > 胡滨 Hu Bin
> > 产品研发一部 Product R&D Dept Ⅰ.
> >
> > Tel: +86-029-83636981
> > MP: +86-17792055220
> > Email: hu.bin309@zte.com.cn
> > Website: www.ztewelink.com
> > Add: 西安市长安区西沣路五星段9号 1A3-56
> > --------------------------------------------------------
> > ZTE Information Security Notice: The information contained in this mail
> (and any attachment transmitted herewith) is privileged and confidential
> and is intended for the exclusive use of the addressee(s). If you are not
> an intended recipient, any disclosure, reproduction, distribution or other
> dissemination or use of the information contained is strictly prohibited.
> If you have received this mail in error, please delete it and notify us
> immediately.
>
> Please make sure not to include such headers when posting to public
> mailing lists.
>
> Thanks,
> Johan
>
>
> --------------------------------------------------------
> ZTE Information Security Notice: The information contained in this mail (and any attachment transmitted herewith) is privileged and confidential and is intended for the exclusive use of the addressee(s). If you are not an intended recipient, any disclosure, reproduction, distribution or other dissemination or use of the information contained is strictly prohibited. If you have received this mail in error, please delete it and notify us immediately.
Again, make sure to remove this header before reposting.
Johan
parent reply other threads:[~2015-07-30 14:16 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <OF92A6AC03.0584F3B1-ON48257E90.00393CC0-48257E90.003C0DAF@zte.com.cn>]
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=20150730141652.GA10793@localhost \
--to=johan@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=hu.bin309@zte.com.cn \
--cc=jhovold@gmail.com \
--cc=konstantin@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=liu.zhao1@zte.com.cn \
--cc=lu.daming@zte.com.cn \
--cc=xia.bin5@zte.com.cn \
--cc=xia.yue@zte.com.cn \
--cc=yang.haojun3@zte.com.cn \
--cc=zhang.yile@zte.com.cn \
/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).