提交 b3c914aa 编写于 作者: D Dan Williams 提交者: David S. Miller

usbnet: add support for some Huawei modems with cdc-ether ports

Some newer Huawei devices (T-Mobile Rocket, others) have cdc-ether
compatible ports, so recognize and expose them.
Signed-off-by: NDan Williams <dcbw@redhat.com>
Acked-by: NOliver Neukum <oneukum@suse.de>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 8333a46a
...@@ -460,7 +460,7 @@ static const struct driver_info cdc_info = { ...@@ -460,7 +460,7 @@ static const struct driver_info cdc_info = {
.manage_power = cdc_manage_power, .manage_power = cdc_manage_power,
}; };
static const struct driver_info mbm_info = { static const struct driver_info wwan_info = {
.description = "Mobile Broadband Network Device", .description = "Mobile Broadband Network Device",
.flags = FLAG_WWAN, .flags = FLAG_WWAN,
.bind = usbnet_cdc_bind, .bind = usbnet_cdc_bind,
...@@ -471,6 +471,7 @@ static const struct driver_info mbm_info = { ...@@ -471,6 +471,7 @@ static const struct driver_info mbm_info = {
/*-------------------------------------------------------------------------*/ /*-------------------------------------------------------------------------*/
#define HUAWEI_VENDOR_ID 0x12D1
static const struct usb_device_id products [] = { static const struct usb_device_id products [] = {
/* /*
...@@ -587,8 +588,17 @@ static const struct usb_device_id products [] = { ...@@ -587,8 +588,17 @@ static const struct usb_device_id products [] = {
}, { }, {
USB_INTERFACE_INFO(USB_CLASS_COMM, USB_CDC_SUBCLASS_MDLM, USB_INTERFACE_INFO(USB_CLASS_COMM, USB_CDC_SUBCLASS_MDLM,
USB_CDC_PROTO_NONE), USB_CDC_PROTO_NONE),
.driver_info = (unsigned long)&mbm_info, .driver_info = (unsigned long)&wwan_info,
}, {
/* Various Huawei modems with a network port like the UMG1831 */
.match_flags = USB_DEVICE_ID_MATCH_VENDOR
| USB_DEVICE_ID_MATCH_INT_INFO,
.idVendor = HUAWEI_VENDOR_ID,
.bInterfaceClass = USB_CLASS_COMM,
.bInterfaceSubClass = USB_CDC_SUBCLASS_ETHERNET,
.bInterfaceProtocol = 255,
.driver_info = (unsigned long)&wwan_info,
}, },
{ }, // END { }, // END
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册