Re: [PATCH] USB: serial: move the simple drivers into usb-serial-simple.c

2013-08-06 Thread Wei Shuai
usb to serial device, mush them all into one file, with a macro, so as to make it easy to add new ones. Cc: René Bürgel rene.buer...@sohard.de Cc: Wei Shuai cpuw...@gmail.com Cc: Josh Triplett j...@joshtriplett.org Cc: Frans Klaver frans.kla...@xsens.com Cc: Wesley W. Terpstra w.terps

[PATCH] USB: serial: add support Infineon modem USB flashloader driver

2013-05-29 Thread Wei Shuai
If you want to download Infineon modem via USB, this Infineon USB flashloader driver is required. Signed-off-by: Wei Shuai cpuw...@gmail.com --- drivers/usb/serial/Kconfig | 10 ++ drivers/usb/serial/Makefile |1 + drivers/usb/serial/flashloader.c | 39

Re: [PATCH 2/2] CDC_NCM: adding support FLAG_NOARP for Infineon modem platform

2013-01-21 Thread Wei Shuai
Thank you David. yes in the core driver, FLAG_NOARP will be translated to IFF_NOARP 2013/1/21, David Miller da...@davemloft.net: From: Wei Shuai cpuw...@gmail.com Date: Mon, 21 Jan 2013 10:20:22 +0800 The main problem is that these devices don't support ethernet. He's saying your comment

[PATCH 1/2] usbnet: add new flag FLAG_NOARP for usb net devices

2013-01-21 Thread Wei Shuai
We do have some USB net devices, which cannot do ARP. so we can introduce a new flag FLAG_NOARP, then client drivers can easily handle this kind of devices Signed-off-by: Wei Shuai cpuw...@gmail.com --- drivers/net/usb/usbnet.c |4 include/linux/usb/usbnet.h |1 + 2 files

[PATCH 2/2] cdc_ncm: add support FLAG_NOARP for Infineon modem platform

2013-01-21 Thread Wei Shuai
Infineon(now Intel) HSPA Modem platform NCM cannot support ARP. we can define a new common structure wwan_noarp_info. Then more similiar NO ARP devices can be handled easily Signed-off-by: Wei Shuai cpuw...@gmail.com --- drivers/net/usb/cdc_ncm.c | 21 + 1 files changed

[PATCH 1/2] introduce flag FLAG_NOARP for usb net devices which cannot do ARP

2013-01-19 Thread Wei Shuai
we do have some USB net devices, which cannot do ARP. so we can introduce a new flag FLAG_NOARP, then client drivers can easily handle these kind of devices Signed-off-by: Wei Shuai cpuw...@gmail.com --- drivers/net/usb/usbnet.c |4 include/linux/usb/usbnet.h |1 + 2 files

[PATCH 1/2] introduce flag FLAG_NOARP for usb net devices which cannot do ARP

2013-01-19 Thread Wei Shuai
Signed-off-by: Wei Shuai cpuw...@gmail.com --- drivers/net/usb/usbnet.c |4 include/linux/usb/usbnet.h |1 + 2 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c index 3d4bf01..f34b2eb 100644 --- a/drivers/net/usb

[PATCH 1/2] introduce flag FLAG_NOARP for usb net devices which cannot do ARP

2013-01-19 Thread Wei Shuai
we do have some USB net devices, which cannot do ARP. so we can introduce a new flag FLAG_NOARP, then client drivers can easily handle these kind of devices Signed-off-by: Wei Shuai cpuw...@gmail.com --- drivers/net/usb/usbnet.c |4 include/linux/usb/usbnet.h |1 + 2 files

[PATCH 1/2] introduce flag FLAG_NOARP for usb net devices which cannot do ARP

2013-01-19 Thread Wei Shuai
Signed-off-by: Wei Shuai cpuw...@gmail.com --- drivers/net/usb/usbnet.c |4 include/linux/usb/usbnet.h |1 + 2 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c index 3d4bf01..f34b2eb 100644 --- a/drivers/net/usb

[PATCH 2/2] CDC_NCM adding support FLAG_NOARP for Infineon modem platform

2013-01-19 Thread Wei Shuai
Infineon(now Intel) HSPA Modem platform NCM cannot support ARP. we can define a new common structure wwan_noarp_info. Then more similiar NO ARP devices can be handled easily Signed-off-by: Wei Shuai cpuw...@gmail.com --- drivers/net/usb/cdc_ncm.c | 21 + 1 files changed

Re: [PATCH 1/2] introduce flag FLAG_NOARP for usb net devices which cannot do ARP

2013-01-19 Thread Wei Shuai
sorry for wrongly use git, I cannot recall them back. There is no different between them. Anything else I can fix this? Resubmit? 2013/1/19, David Miller da...@davemloft.net: Why did you submit this _4_ times? I'm deleteing everything, I'm not even going to try and guess why you submitted

[PATCH 1/2] usbnet: introduce flag FLAG_NOARP for usb net devices

2013-01-19 Thread Wei Shuai
we do have some USB net devices, which cannot do ARP. so we can introduce a new flag FLAG_NOARP, then client drivers can easily handle these kind of devices Signed-off-by: Wei Shuai cpuw...@gmail.com --- drivers/net/usb/usbnet.c |4 include/linux/usb/usbnet.h |1 + 2 files

[PATCH 1/2] usbnet: add flag FLAG_NOARP for usb net devices

2013-01-19 Thread Wei Shuai
we do have some USB net devices, which cannot do ARP. so we can introduce a new flag FLAG_NOARP, then client drivers can easily handle these kind of devices Signed-off-by: Wei Shuai cpuw...@gmail.com --- drivers/net/usb/usbnet.c |4 include/linux/usb/usbnet.h |1 + 2 files

[PATCH 2/2] CDC_NCM: adding support FLAG_NOARP for Infineon modem platform

2013-01-19 Thread Wei Shuai
Infineon(now Intel) HSPA Modem platform NCM cannot support ARP. we can define a new common structure wwan_noarp_info. Then more similiar NO ARP devices can be handled easily Signed-off-by: Wei Shuai cpuw...@gmail.com --- drivers/net/usb/cdc_ncm.c | 21 + 1 files changed

Re: [PATCH] CDC_NCM adding support IFF_NOARP for infineon modem platform

2013-01-16 Thread Wei Shuai
OK, I will follow up. after add FLAG_NOARP, how should I handle IFF_NOARP? will I do it in cdc_ncm.c or usb_net.c? 2013/1/17 Dan Williams d...@redhat.com: On Sat, 2013-01-12 at 19:34 +0800, Wei Shuai wrote: Infineon(now Intel) HSPA Modem platform NCM cannot support ARP. so I introduce a flag

Re: [PATCH] CDC_NCM adding support IFF_NOARP for infineon modem platform

2013-01-15 Thread Wei Shuai
...@redhat.com: On Sat, 2013-01-12 at 15:35 -0800, David Miller wrote: From: Wei Shuai cpuw...@gmail.com Date: Sat, 12 Jan 2013 19:34:39 +0800 Infineon(now Intel) HSPA Modem platform NCM cannot support ARP. so I introduce a flag CDC_NCM_DRIVER_DATA_NOARP which is defined in driver_info:data. so

[PATCH] CDC_NCM adding support IFF_NOARP for infineon modem platform

2013-01-12 Thread Wei Shuai
Infineon(now Intel) HSPA Modem platform NCM cannot support ARP. so I introduce a flag CDC_NCM_DRIVER_DATA_NOARP which is defined in driver_info:data. so later on, if more such buggy devices are found, they could use same flag to handle. Signed-off-by: Wei Shuai cpuw...@gmail.com --- drivers

[PATCH] CDC_NCM adding support IFF_NOARP for buggy device

2013-01-10 Thread Wei Shuai
Signed-off-by: Wei Shuai cpuw...@gmail.com --- drivers/net/usb/cdc_ncm.c | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/drivers/net/usb/cdc_ncm.c b/drivers/net/usb/cdc_ncm.c index 71b6e92..9903f79 100644 --- a/drivers/net/usb/cdc_ncm.c +++ b/drivers/net

net: usb: cdc_ncm: add support IFF_NOARP

2013-01-08 Thread Wei Shuai
Hi Alexey, Recently I met a Modem which cannot do ARP. But I found our cdc_ncm_bind() function cannot handle this special case. Do you have any plan to handle it? static int cdc_ncm_bind(struct usbnet *dev, struct usb_interface *intf) { ... /* cannot do ARP */