From: Franko Fang <huananhu@huawei.com>
To: Greg KH <greg@kroah.com>
Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
zihan@huawei.com, Lin.Lei@huawei.com, zhangqianchun@huawei.com
Subject: Re: PATCH 10/4]linux-usb: To support more Huawei data card productIDs, fix kernel 2.6.27-rc7
Date: Thu, 25 Sep 2008 09:36:29 +0800 [thread overview]
Message-ID: <025201c91eaf$224001e0$f9100b0a@china.huawei.com> (raw)
In-Reply-To: <20080924150304.GC26466@kroah.com>
1. In this patch, we want to do one thing: add more Huawei product IDs into the USB driver. Then it can support more Huawei data card devices.
So I make them in one patch.
2. To change usb_stor_huawei_e220_init function as follows, that's because in the USB standard, while sending SET_FETURE_D to the device, it requires the corresponding data to be zero, and its sending length also must be zero.
In our old solution, it can be compatible with our WCDMA data card devices, but can not support our CDMA data card devices.
But in this new solution, it can be compatible with all of our data card devices.
Hope that my interpreting can satify you.
-----------------------------
>> --- linux-2.6.27-rc7-orig/drivers/usb/storage/initializers.c 2008-09-22 06:29:55.000000000 +0800
>> +++ linux-2.6.27-rc7/drivers/usb/storage/initializers.c 2008-09-24 12:04:40.000000000 +0800
>> @@ -95,11 +95,11 @@ int usb_stor_huawei_e220_init(struct us_
>> {
>> int result;
>>
>> - us->iobuf[0] = 0x1;
>> + us->iobuf[0] = 0x0;
>> result = usb_stor_control_msg(us, us->send_ctrl_pipe,
>> USB_REQ_SET_FEATURE,
>> USB_TYPE_STANDARD | USB_RECIP_DEVICE,
>> - 0x01, 0x0, us->iobuf, 0x1, 1000);
>> + 0x01, 0x0, us->iobuf, 0x0, 1000);
-------------------------------------------------------------------------
Franko Fang
2008-9-25
----- Original Message -----
From: "Greg KH" <greg@kroah.com>
To: "fangxiaozhi 00110321" <huananhu@huawei.com>
Cc: <linux-usb@vger.kernel.org>; <linux-kernel@vger.kernel.org>; <zihan@huawei.com>; <Lin.Lei@huawei.com>; <zhangqianchun@huawei.com>
Sent: Wednesday, September 24, 2008 11:03 PM
Subject: Re: PATCH 10/4]linux-usb: To support more Huawei data card productIDs, fix kernel 2.6.27-rc7
> On Wed, Sep 24, 2008 at 02:08:12PM +0800, fangxiaozhi 00110321 wrote:
>>
>> From: fangxiaozhi <huananhu@huawei.com>
>>
>> 1. This patch is based on the kernel of 2.6.27-rc7 2. To declare the unusual device for new Huawei data card devices
>> in unusual_devs.h
>> 3. To modify the data value and length in the function of
>> usb_stor_huawei_e220_init in initializers.c
>> 4. To declare more new product IDs in option.c.
>
> I thought I asked you to split this up into 4 different patches? Hm,
> maybe three should be all that is needed, I thought your original one
> did 4 different things.
>
> And isn't your modification of the usb_stor_huawei_e220_init function
> going to break the devices that it currently works for? Or has it
> always been wrong?
>
> thanks,
>
> greg k-h
next prev parent reply other threads:[~2008-09-25 1:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-24 2:07 [PATCH 10/4]linux-usb: To support more Huawei data card product IDs, fix kernel 2.6.26.5 fangxiaozhi 00110321
2008-09-24 2:30 ` Greg KH
2008-09-24 3:02 ` Franko Fang
2008-09-24 3:31 ` Greg KH
2008-09-24 6:08 ` PATCH 10/4]linux-usb: To support more Huawei data card product IDs, fix kernel 2.6.27-rc7 fangxiaozhi 00110321
2008-09-24 14:38 ` Alan Stern
2008-09-24 15:03 ` Greg KH
2008-09-25 1:36 ` Franko Fang [this message]
2008-09-25 2:10 ` PATCH 10/4]linux-usb: To support more Huawei data card productIDs, " Greg KH
2008-10-08 1:31 PATCH 10/4]linux-usb: To support more Huawei data card product IDs, " fangxiaozhi 00110321
2008-10-08 3:21 ` Greg KH
2008-10-08 3:58 ` PATCH 10/4]linux-usb: To support more Huawei data card productIDs, " Franko Fang
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='025201c91eaf$224001e0$f9100b0a@china.huawei.com' \
--to=huananhu@huawei.com \
--cc=Lin.Lei@huawei.com \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=zhangqianchun@huawei.com \
--cc=zihan@huawei.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
Powered by JetHome