Skip to contentSkip to conversation

net: sierra_net: device IDs for Aircard 320U++

PATCH In review Bjørn Mork 3 participants 6 messages Jun 6, 2012 6 messages not in the archive

Subsystems (3)
lore
Share & tools
lore
#2 lore raw

PATCH 1/1 net: sierra_net: device IDs for Aircard 320U++

In reply to a message not in the archive

Adding device IDs for Aircard 320U and two other devices found in the out-of-tree version of this driver.

---
 drivers/net/usb/sierra_net.c |   14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)
drivers/net/usb/sierra_net.c +10 -4
index 3faef56..d75d1f5 100644
@@ -946,7 +946,7 @@ struct sk_buff *sierra_net_tx_fixup(struct usbnet *dev, struct sk_buff *skb,
 }
 
 static const u8 sierra_net_ifnum_list[] = { 7, 10, 11 };
-static const struct sierra_net_info_data sierra_net_info_data_68A3 = {
+static const struct sierra_net_info_data sierra_net_info_data_direct_ip = {
 	.rx_urb_size = 8 * 1024,
 	.whitelist = {
 		.infolen = ARRAY_SIZE(sierra_net_ifnum_list),
@@ -954,7 +954,7 @@ static const struct sierra_net_info_data sierra_net_info_data_68A3 = {
 	}
 };
 
-static const struct driver_info sierra_net_info_68A3 = {
+static const struct driver_info sierra_net_info_direct_ip = {
 	.description = "Sierra Wireless USB-to-WWAN Modem",
 	.flags = FLAG_WWAN | FLAG_SEND_ZLP,
 	.bind = sierra_net_bind,
@@ -962,12 +962,18 @@ static const struct driver_info sierra_net_info_68A3 = {
 	.status = sierra_net_status,
 	.rx_fixup = sierra_net_rx_fixup,
 	.tx_fixup = sierra_net_tx_fixup,
-	.data = (unsigned long)&sierra_net_info_data_68A3,
+	.data = (unsigned long)&sierra_net_info_data_direct_ip,
 };
 
 static const struct usb_device_id products[] = {
 	{USB_DEVICE(0x1199, 0x68A3), /* Sierra Wireless USB-to-WWAN modem */
-	.driver_info = (unsigned long) &sierra_net_info_68A3},
+	.driver_info = (unsigned long) &sierra_net_info_direct_ip},
+	{USB_DEVICE(0x0F3D, 0x68A3), /* AT&T Direct IP modem */
+	.driver_info = (unsigned long) &sierra_net_info_direct_ip},
+	{USB_DEVICE(0x1199, 0x68AA), /* Sierra Wireless Direct IP LTE modem */
+	.driver_info = (unsigned long) &sierra_net_info_direct_ip},
+	{USB_DEVICE(0x0F3D, 0x68AA), /* AT&T Direct IP LTE modem */
+	.driver_info = (unsigned long) &sierra_net_info_direct_ip},
 
 	{}, /* last item */
 };
Signature · 6 lines
1.7.10

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#4 lore raw
In reply to a message not in the archive
Quoted 11 lines · Bjørn Mork

Adding device IDs for Aircard 320U and two other devices found in the out-of-tree version of this driver.

---
 drivers/net/usb/sierra_net.c |   14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

Wait, Tom just sent me a patch adding these device ids to the sierra serial driver, why would the same device work for both drivers? Where should the device id go?

confused,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#6 lore raw
In reply to a message not in the archive
Quoted 13 lines · Greg KH
Quoted 11 lines · Bjørn Mork

Adding device IDs for Aircard 320U and two other devices found in the out-of-tree version of this driver.

---
 drivers/net/usb/sierra_net.c |   14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)
Quoted 2 lines

Wait, Tom just sent me a patch adding these device ids to the sierra serial driver, why would the same device work for both drivers?

Because it's a composite device. Was this a trick question? :-)

Quoted 1 line

Where should the device id go?

To both drivers. The device is similar to the 1199:68a3 device already supported by both drivers. It has a number of serial ports (depending on how many features like GPS etc is enabled) supported by the "sierra" driver and one ethernet interface speaking Sierra's HIP protocol supported by the "sierra_net" driver.

Bjørn
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

Acked-by
#8 lore raw
In reply to a message not in the archive
Quoted 19 lines · Bjørn Mork
Quoted 13 lines · Greg KH
Quoted 11 lines · Bjørn Mork

Adding device IDs for Aircard 320U and two other devices found in the out-of-tree version of this driver.

---
 drivers/net/usb/sierra_net.c |   14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)
Quoted 2 lines

Wait, Tom just sent me a patch adding these device ids to the sierra serial driver, why would the same device work for both drivers?

Because it's a composite device. Was this a trick question? :-)

Quoted 7 lines
Quoted 1 line

Where should the device id go?

To both drivers. The device is similar to the 1199:68a3 device already supported by both drivers. It has a number of serial ports (depending on how many features like GPS etc is enabled) supported by the "sierra" driver and one ethernet interface speaking Sierra's HIP protocol supported by the "sierra_net" driver.

Ok, thanks for clearing that up, I'll take the serial patch, and I'm sure that David will take this one.

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

maintainer
#9 lore raw

From: Greg KH <[email protected]>
Date: Wed, 6 Jun 2012 21:16:33 +0900

Quoted 4 lines

Ok, thanks for clearing that up, I'll take the serial patch, and I'm sure that David will take this one.

I'll apply this, thanks.

Greg, could you not put that TAB at the beginning of your signoffs? It causes patchwork not to pick them up so I have to add it manually.

Thanks.

#11 lore raw
In reply to a message not in the archive
Quoted 6 lines · David Miller

From: Greg KH <[email protected]>
Date: Wed, 6 Jun 2012 21:16:33 +0900

Quoted 3 lines

Ok, thanks for clearing that up, I'll take the serial patch, and I'm sure that David will take this one.

Quoted 7 lines
Quoted 1 line

I'll apply this, thanks.

Greg, could you not put that TAB at the beginning of your signoffs? It causes patchwork not to pick them up so I have to add it manually.

Sorry, I didn't know that, I'll not do that in the future.

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html