netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] net: usb: cdc_ncm: Adding support for two new Dell devices
@ 2015-12-18 13:43 Daniele Palmas
  2015-12-18 13:43 ` [PATCH v2 1/2] net: usb: cdc_ncm: Adding Dell DW5812 LTE Verizon Mobile Broadband Card Daniele Palmas
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Daniele Palmas @ 2015-12-18 13:43 UTC (permalink / raw)
  To: David Miller; +Cc: linux-usb, netdev, Daniele Palmas

This patch series add support in the cdc_ncm driver for two devices
based on the same platform, that are different only for carrier
customization.

V2: Added comment for highlighting FLAG_NOARP usage for those devices

Daniele Palmas (2):
  net: usb: cdc_ncm: Adding Dell DW5812 LTE Verizon Mobile Broadband
    Card
  net: usb: cdc_ncm: Adding Dell DW5813 LTE AT&T Mobile Broadband Card

 drivers/net/usb/cdc_ncm.c | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v2 1/2] net: usb: cdc_ncm: Adding Dell DW5812 LTE Verizon Mobile Broadband Card
  2015-12-18 13:43 [PATCH v2 0/2] net: usb: cdc_ncm: Adding support for two new Dell devices Daniele Palmas
@ 2015-12-18 13:43 ` Daniele Palmas
  2015-12-18 13:43 ` [PATCH v2 2/2] net: usb: cdc_ncm: Adding Dell DW5813 LTE AT&T " Daniele Palmas
  2015-12-18 21:37 ` [PATCH v2 0/2] net: usb: cdc_ncm: Adding support for two new Dell devices David Miller
  2 siblings, 0 replies; 4+ messages in thread
From: Daniele Palmas @ 2015-12-18 13:43 UTC (permalink / raw)
  To: David Miller; +Cc: linux-usb, netdev, Daniele Palmas

Unlike DW5550, Dell DW5812 is a mobile broadband card with no ARP
capabilities: the patch makes this device to use wwan_noarp_info struct

Signed-off-by: Daniele Palmas <dnlplm@gmail.com>
---
 drivers/net/usb/cdc_ncm.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/drivers/net/usb/cdc_ncm.c b/drivers/net/usb/cdc_ncm.c
index b45e5ca..7be9b73 100644
--- a/drivers/net/usb/cdc_ncm.c
+++ b/drivers/net/usb/cdc_ncm.c
@@ -1593,6 +1593,15 @@ static const struct usb_device_id cdc_devs[] = {
 	  .driver_info = (unsigned long) &wwan_info,
 	},
 
+	/* DW5812 LTE Verizon Mobile Broadband Card
+	 * Unlike DW5550 this device requires FLAG_NOARP
+	 */
+	{ USB_DEVICE_AND_INTERFACE_INFO(0x413c, 0x81bb,
+		USB_CLASS_COMM,
+		USB_CDC_SUBCLASS_NCM, USB_CDC_PROTO_NONE),
+	  .driver_info = (unsigned long)&wwan_noarp_info,
+	},
+
 	/* Dell branded MBM devices like DW5550 */
 	{ .match_flags = USB_DEVICE_ID_MATCH_INT_INFO
 		| USB_DEVICE_ID_MATCH_VENDOR,
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH v2 2/2] net: usb: cdc_ncm: Adding Dell DW5813 LTE AT&T Mobile Broadband Card
  2015-12-18 13:43 [PATCH v2 0/2] net: usb: cdc_ncm: Adding support for two new Dell devices Daniele Palmas
  2015-12-18 13:43 ` [PATCH v2 1/2] net: usb: cdc_ncm: Adding Dell DW5812 LTE Verizon Mobile Broadband Card Daniele Palmas
@ 2015-12-18 13:43 ` Daniele Palmas
  2015-12-18 21:37 ` [PATCH v2 0/2] net: usb: cdc_ncm: Adding support for two new Dell devices David Miller
  2 siblings, 0 replies; 4+ messages in thread
From: Daniele Palmas @ 2015-12-18 13:43 UTC (permalink / raw)
  To: David Miller; +Cc: linux-usb, netdev, Daniele Palmas

Unlike DW5550, Dell DW5813 is a mobile broadband card with no ARP
capabilities: the patch makes this device to use wwan_noarp_info struct

Signed-off-by: Daniele Palmas <dnlplm@gmail.com>
---
 drivers/net/usb/cdc_ncm.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/drivers/net/usb/cdc_ncm.c b/drivers/net/usb/cdc_ncm.c
index 7be9b73..89536d9 100644
--- a/drivers/net/usb/cdc_ncm.c
+++ b/drivers/net/usb/cdc_ncm.c
@@ -1602,6 +1602,15 @@ static const struct usb_device_id cdc_devs[] = {
 	  .driver_info = (unsigned long)&wwan_noarp_info,
 	},
 
+	/* DW5813 LTE AT&T Mobile Broadband Card
+	 * Unlike DW5550 this device requires FLAG_NOARP
+	 */
+	{ USB_DEVICE_AND_INTERFACE_INFO(0x413c, 0x81bc,
+		USB_CLASS_COMM,
+		USB_CDC_SUBCLASS_NCM, USB_CDC_PROTO_NONE),
+	  .driver_info = (unsigned long)&wwan_noarp_info,
+	},
+
 	/* Dell branded MBM devices like DW5550 */
 	{ .match_flags = USB_DEVICE_ID_MATCH_INT_INFO
 		| USB_DEVICE_ID_MATCH_VENDOR,
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v2 0/2] net: usb: cdc_ncm: Adding support for two new Dell devices
  2015-12-18 13:43 [PATCH v2 0/2] net: usb: cdc_ncm: Adding support for two new Dell devices Daniele Palmas
  2015-12-18 13:43 ` [PATCH v2 1/2] net: usb: cdc_ncm: Adding Dell DW5812 LTE Verizon Mobile Broadband Card Daniele Palmas
  2015-12-18 13:43 ` [PATCH v2 2/2] net: usb: cdc_ncm: Adding Dell DW5813 LTE AT&T " Daniele Palmas
@ 2015-12-18 21:37 ` David Miller
  2 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2015-12-18 21:37 UTC (permalink / raw)
  To: dnlplm; +Cc: linux-usb, netdev

From: Daniele Palmas <dnlplm@gmail.com>
Date: Fri, 18 Dec 2015 14:43:32 +0100

> This patch series add support in the cdc_ncm driver for two devices
> based on the same platform, that are different only for carrier
> customization.
> 
> V2: Added comment for highlighting FLAG_NOARP usage for those devices

Series applied, thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-12-18 21:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-18 13:43 [PATCH v2 0/2] net: usb: cdc_ncm: Adding support for two new Dell devices Daniele Palmas
2015-12-18 13:43 ` [PATCH v2 1/2] net: usb: cdc_ncm: Adding Dell DW5812 LTE Verizon Mobile Broadband Card Daniele Palmas
2015-12-18 13:43 ` [PATCH v2 2/2] net: usb: cdc_ncm: Adding Dell DW5813 LTE AT&T " Daniele Palmas
2015-12-18 21:37 ` [PATCH v2 0/2] net: usb: cdc_ncm: Adding support for two new Dell devices David Miller

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).