rk30_phonepad:add mt6229 to black list in usb serial
authorluowei <lw@rock-chips.com>
Wed, 24 Oct 2012 10:30:22 +0000 (18:30 +0800)
committerluowei <lw@rock-chips.com>
Wed, 24 Oct 2012 10:30:22 +0000 (18:30 +0800)
drivers/usb/serial/option.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index e9bfcd9..01fb3dc
@@ -448,6 +448,11 @@ static void option_instat_callback(struct urb *urb);
 #define CELLIENT_VENDOR_ID                     0x2692
 #define CELLIENT_PRODUCT_MEN200                        0x9005
 
+/*usi mt6229 modem*/
+#define MT6229_VENDOR_ID                       0x0e8d 
+#define MT6229_PRODUCT_ID                      0x00a0
+
+
 /* some devices interfaces need special handling due to a number of reasons */
 enum option_blacklist_reason {
                OPTION_BLACKLIST_NONE = 0,
@@ -1438,6 +1443,14 @@ static int option_probe(struct usb_serial *serial,
                serial->interface->cur_altsetting->desc.bInterfaceClass != USB_CLASS_CDC_DATA)
                return -ENODEV;
 
+       /* Don't bind network interface on mt6229, it is handled by a separate module */
+       if (serial->dev->descriptor.idVendor == MT6229_VENDOR_ID &&
+               serial->dev->descriptor.idProduct == MT6229_PRODUCT_ID)
+       {
+               printk("%s:mt6229 exit\n",__func__);
+               return -ENODEV;
+       }
+
        data = serial->private = kzalloc(sizeof(struct usb_wwan_intf_private), GFP_KERNEL);
        if (!data)
                return -ENOMEM;