diff options
Diffstat (limited to 'drivers/usb/serial/option.c')
-rw-r--r-- | drivers/usb/serial/option.c | 44 |
1 files changed, 37 insertions, 7 deletions
diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index e4eca95f2b0f..e143198aeb02 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c | |||
@@ -186,6 +186,23 @@ static int option_send_setup(struct tty_struct *tty, struct usb_serial_port *po | |||
186 | #define BANDRICH_VENDOR_ID 0x1A8D | 186 | #define BANDRICH_VENDOR_ID 0x1A8D |
187 | #define BANDRICH_PRODUCT_C100_1 0x1002 | 187 | #define BANDRICH_PRODUCT_C100_1 0x1002 |
188 | #define BANDRICH_PRODUCT_C100_2 0x1003 | 188 | #define BANDRICH_PRODUCT_C100_2 0x1003 |
189 | #define BANDRICH_PRODUCT_1004 0x1004 | ||
190 | #define BANDRICH_PRODUCT_1005 0x1005 | ||
191 | #define BANDRICH_PRODUCT_1006 0x1006 | ||
192 | #define BANDRICH_PRODUCT_1007 0x1007 | ||
193 | #define BANDRICH_PRODUCT_1008 0x1008 | ||
194 | #define BANDRICH_PRODUCT_1009 0x1009 | ||
195 | #define BANDRICH_PRODUCT_100A 0x100a | ||
196 | |||
197 | #define BANDRICH_PRODUCT_100B 0x100b | ||
198 | #define BANDRICH_PRODUCT_100C 0x100c | ||
199 | #define BANDRICH_PRODUCT_100D 0x100d | ||
200 | #define BANDRICH_PRODUCT_100E 0x100e | ||
201 | |||
202 | #define BANDRICH_PRODUCT_100F 0x100f | ||
203 | #define BANDRICH_PRODUCT_1010 0x1010 | ||
204 | #define BANDRICH_PRODUCT_1011 0x1011 | ||
205 | #define BANDRICH_PRODUCT_1012 0x1012 | ||
189 | 206 | ||
190 | #define AMOI_VENDOR_ID 0x1614 | 207 | #define AMOI_VENDOR_ID 0x1614 |
191 | #define AMOI_PRODUCT_9508 0x0800 | 208 | #define AMOI_PRODUCT_9508 0x0800 |
@@ -197,6 +214,10 @@ static int option_send_setup(struct tty_struct *tty, struct usb_serial_port *po | |||
197 | #define TELIT_VENDOR_ID 0x1bc7 | 214 | #define TELIT_VENDOR_ID 0x1bc7 |
198 | #define TELIT_PRODUCT_UC864E 0x1003 | 215 | #define TELIT_PRODUCT_UC864E 0x1003 |
199 | 216 | ||
217 | /* ZTE PRODUCTS */ | ||
218 | #define ZTE_VENDOR_ID 0x19d2 | ||
219 | #define ZTE_PRODUCT_MF628 0x0015 | ||
220 | |||
200 | static struct usb_device_id option_ids[] = { | 221 | static struct usb_device_id option_ids[] = { |
201 | { USB_DEVICE(OPTION_VENDOR_ID, OPTION_PRODUCT_COLT) }, | 222 | { USB_DEVICE(OPTION_VENDOR_ID, OPTION_PRODUCT_COLT) }, |
202 | { USB_DEVICE(OPTION_VENDOR_ID, OPTION_PRODUCT_RICOLA) }, | 223 | { USB_DEVICE(OPTION_VENDOR_ID, OPTION_PRODUCT_RICOLA) }, |
@@ -302,12 +323,28 @@ static struct usb_device_id option_ids[] = { | |||
302 | { USB_DEVICE(ONDA_VENDOR_ID, ONDA_PRODUCT_ET502HS) }, | 323 | { USB_DEVICE(ONDA_VENDOR_ID, ONDA_PRODUCT_ET502HS) }, |
303 | { USB_DEVICE(BANDRICH_VENDOR_ID, BANDRICH_PRODUCT_C100_1) }, | 324 | { USB_DEVICE(BANDRICH_VENDOR_ID, BANDRICH_PRODUCT_C100_1) }, |
304 | { USB_DEVICE(BANDRICH_VENDOR_ID, BANDRICH_PRODUCT_C100_2) }, | 325 | { USB_DEVICE(BANDRICH_VENDOR_ID, BANDRICH_PRODUCT_C100_2) }, |
326 | { USB_DEVICE(BANDRICH_VENDOR_ID, BANDRICH_PRODUCT_1004) }, | ||
327 | { USB_DEVICE(BANDRICH_VENDOR_ID, BANDRICH_PRODUCT_1005) }, | ||
328 | { USB_DEVICE(BANDRICH_VENDOR_ID, BANDRICH_PRODUCT_1006) }, | ||
329 | { USB_DEVICE(BANDRICH_VENDOR_ID, BANDRICH_PRODUCT_1007) }, | ||
330 | { USB_DEVICE(BANDRICH_VENDOR_ID, BANDRICH_PRODUCT_1008) }, | ||
331 | { USB_DEVICE(BANDRICH_VENDOR_ID, BANDRICH_PRODUCT_1009) }, | ||
332 | { USB_DEVICE(BANDRICH_VENDOR_ID, BANDRICH_PRODUCT_100A) }, | ||
333 | { USB_DEVICE(BANDRICH_VENDOR_ID, BANDRICH_PRODUCT_100B) }, | ||
334 | { USB_DEVICE(BANDRICH_VENDOR_ID, BANDRICH_PRODUCT_100C) }, | ||
335 | { USB_DEVICE(BANDRICH_VENDOR_ID, BANDRICH_PRODUCT_100D) }, | ||
336 | { USB_DEVICE(BANDRICH_VENDOR_ID, BANDRICH_PRODUCT_100E) }, | ||
337 | { USB_DEVICE(BANDRICH_VENDOR_ID, BANDRICH_PRODUCT_100F) }, | ||
338 | { USB_DEVICE(BANDRICH_VENDOR_ID, BANDRICH_PRODUCT_1010) }, | ||
339 | { USB_DEVICE(BANDRICH_VENDOR_ID, BANDRICH_PRODUCT_1011) }, | ||
340 | { USB_DEVICE(BANDRICH_VENDOR_ID, BANDRICH_PRODUCT_1012) }, | ||
305 | { USB_DEVICE(KYOCERA_VENDOR_ID, KYOCERA_PRODUCT_KPC650) }, | 341 | { USB_DEVICE(KYOCERA_VENDOR_ID, KYOCERA_PRODUCT_KPC650) }, |
306 | { USB_DEVICE(KYOCERA_VENDOR_ID, KYOCERA_PRODUCT_KPC680) }, | 342 | { USB_DEVICE(KYOCERA_VENDOR_ID, KYOCERA_PRODUCT_KPC680) }, |
307 | { USB_DEVICE(QUALCOMM_VENDOR_ID, 0x6000)}, /* ZTE AC8700 */ | 343 | { USB_DEVICE(QUALCOMM_VENDOR_ID, 0x6000)}, /* ZTE AC8700 */ |
308 | { USB_DEVICE(QUALCOMM_VENDOR_ID, 0x6613)}, /* Onda H600/ZTE MF330 */ | 344 | { USB_DEVICE(QUALCOMM_VENDOR_ID, 0x6613)}, /* Onda H600/ZTE MF330 */ |
309 | { USB_DEVICE(MAXON_VENDOR_ID, 0x6280) }, /* BP3-USB & BP3-EXT HSDPA */ | 345 | { USB_DEVICE(MAXON_VENDOR_ID, 0x6280) }, /* BP3-USB & BP3-EXT HSDPA */ |
310 | { USB_DEVICE(TELIT_VENDOR_ID, TELIT_PRODUCT_UC864E) }, | 346 | { USB_DEVICE(TELIT_VENDOR_ID, TELIT_PRODUCT_UC864E) }, |
347 | { USB_DEVICE(ZTE_VENDOR_ID, ZTE_PRODUCT_MF628) }, | ||
311 | { } /* Terminating entry */ | 348 | { } /* Terminating entry */ |
312 | }; | 349 | }; |
313 | MODULE_DEVICE_TABLE(usb, option_ids); | 350 | MODULE_DEVICE_TABLE(usb, option_ids); |
@@ -346,11 +383,7 @@ static struct usb_serial_driver option_1port_device = { | |||
346 | .read_int_callback = option_instat_callback, | 383 | .read_int_callback = option_instat_callback, |
347 | }; | 384 | }; |
348 | 385 | ||
349 | #ifdef CONFIG_USB_DEBUG | ||
350 | static int debug; | 386 | static int debug; |
351 | #else | ||
352 | #define debug 0 | ||
353 | #endif | ||
354 | 387 | ||
355 | /* per port private data */ | 388 | /* per port private data */ |
356 | 389 | ||
@@ -954,8 +987,5 @@ MODULE_DESCRIPTION(DRIVER_DESC); | |||
954 | MODULE_VERSION(DRIVER_VERSION); | 987 | MODULE_VERSION(DRIVER_VERSION); |
955 | MODULE_LICENSE("GPL"); | 988 | MODULE_LICENSE("GPL"); |
956 | 989 | ||
957 | #ifdef CONFIG_USB_DEBUG | ||
958 | module_param(debug, bool, S_IRUGO | S_IWUSR); | 990 | module_param(debug, bool, S_IRUGO | S_IWUSR); |
959 | MODULE_PARM_DESC(debug, "Debug messages"); | 991 | MODULE_PARM_DESC(debug, "Debug messages"); |
960 | #endif | ||
961 | |||