This patch, adds to the option driver the Onda Communication
(http://www.ondacommunication.com) vendor id, and the MT825UP modem device
id.
--
This patch has been made against kernel 2.6.35.4!
Note that many variants of this same device are being release here in Italy
(at least one or two per telephony operator).
These devices are perfectly equivalent except for some predefined settings
(which can be changed of course).
It should be noted that most ONDA devices are allready supported (they used
other vendor's ids in the past). The patch seems working fine here, and the
rest of the driver seems uninfluenced.
I tried to be respectful to what I understood in SubmittingPatches. However,
this is my first patch, so I hope to be promptly warned for problems!
I'm not subscribed to any list - so don't forget to CC me!
Signed-off-by: Enrico Mioso <mrkiko.rs@xxxxxxxxx>
--- linux-2.6.35.4/drivers/usb/serial/option.c.orig 2010-09-17 10:04:47.479618073 +0200
+++ linux-2.6.35.4/drivers/usb/serial/option.c 2010-09-17 10:11:30.969617998 +0200
@@ -372,6 +372,12 @@ static void option_instat_callback(struc
#define CELOT_VENDOR_ID 0x211f
#define CELOT_PRODUCT_CT680M 0x6801
+/* ONDA Communication vendor id */
+#define ONDA_VENDOR_ID 0x1ee8
+
+/* ONDA MT825UP HSDPA 14.2 modem */
+#define ONDA_MT825UP 0x000b
+
/* some devices interfaces need special handling due to a number of reasons */
enum option_blacklist_reason {
OPTION_BLACKLIST_NONE = 0,
@@ -898,6 +904,7 @@ static const struct usb_device_id option
{ USB_DEVICE(CINTERION_VENDOR_ID, 0x0047) },
{ USB_DEVICE(OLIVETTI_VENDOR_ID, OLIVETTI_PRODUCT_OLICARD100) },
{ USB_DEVICE(CELOT_VENDOR_ID, CELOT_PRODUCT_CT680M) }, /* CT-650 CDMA 450 1xEVDO modem */
+ { USB_DEVICE(ONDA_VENDOR_ID, ONDA_MT825UP) }, /* ONDA MT825UP modem */
{ } /* Terminating entry */
};
MODULE_DEVICE_TABLE(usb, option_ids);
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html