diff options
Diffstat (limited to 'drivers/usb')
| -rw-r--r-- | drivers/usb/serial/Kconfig | 24 | ||||
| -rw-r--r-- | drivers/usb/serial/Makefile | 1 | ||||
| -rw-r--r-- | drivers/usb/serial/anydata.c | 123 | ||||
| -rw-r--r-- | drivers/usb/serial/option.c | 4 |
4 files changed, 13 insertions, 139 deletions
diff --git a/drivers/usb/serial/Kconfig b/drivers/usb/serial/Kconfig index ac33bd47cfce..f5b9438c94f0 100644 --- a/drivers/usb/serial/Kconfig +++ b/drivers/usb/serial/Kconfig | |||
| @@ -62,15 +62,6 @@ config USB_SERIAL_AIRPRIME | |||
| 62 | To compile this driver as a module, choose M here: the | 62 | To compile this driver as a module, choose M here: the |
| 63 | module will be called airprime. | 63 | module will be called airprime. |
| 64 | 64 | ||
| 65 | config USB_SERIAL_ANYDATA | ||
| 66 | tristate "USB AnyData CDMA Wireless Driver" | ||
| 67 | depends on USB_SERIAL | ||
| 68 | help | ||
| 69 | Say Y here if you want to use a AnyData CDMA device. | ||
| 70 | |||
| 71 | To compile this driver as a module, choose M here: the | ||
| 72 | module will be called anydata. | ||
| 73 | |||
| 74 | config USB_SERIAL_ARK3116 | 65 | config USB_SERIAL_ARK3116 |
| 75 | tristate "USB ARK Micro 3116 USB Serial Driver (EXPERIMENTAL)" | 66 | tristate "USB ARK Micro 3116 USB Serial Driver (EXPERIMENTAL)" |
| 76 | depends on USB_SERIAL && EXPERIMENTAL | 67 | depends on USB_SERIAL && EXPERIMENTAL |
| @@ -502,15 +493,18 @@ config USB_SERIAL_XIRCOM | |||
| 502 | module will be called keyspan_pda. | 493 | module will be called keyspan_pda. |
| 503 | 494 | ||
| 504 | config USB_SERIAL_OPTION | 495 | config USB_SERIAL_OPTION |
| 505 | tristate "USB driver for GSM modems" | 496 | tristate "USB driver for GSM and CDMA modems" |
| 506 | depends on USB_SERIAL | 497 | depends on USB_SERIAL |
| 507 | help | 498 | help |
| 508 | Say Y here if you have an "Option" GSM PCMCIA card | 499 | Say Y here if you have a GSM or CDMA modem that's connected to USB. |
| 509 | (or an OEM version: branded Huawei, Audiovox, or Novatel). | 500 | |
| 501 | This driver also supports several PCMCIA cards which have a | ||
| 502 | built-in OHCI-USB adapter and an internally-connected GSM modem. | ||
| 503 | The USB bus on these cards is not accessible externally. | ||
| 510 | 504 | ||
| 511 | These cards feature a built-in OHCI-USB adapter and an | 505 | Supported devices include (some of?) those made by: |
| 512 | internally-connected GSM modem. The USB bus is not | 506 | Option, Huawei, Audiovox, Sierra Wireless, Novatel Wireless, or |
| 513 | accessible externally. | 507 | Anydata. |
| 514 | 508 | ||
| 515 | To compile this driver as a module, choose M here: the | 509 | To compile this driver as a module, choose M here: the |
| 516 | module will be called option. | 510 | module will be called option. |
diff --git a/drivers/usb/serial/Makefile b/drivers/usb/serial/Makefile index 35d4acc7f1d3..8efed2ce1ba3 100644 --- a/drivers/usb/serial/Makefile +++ b/drivers/usb/serial/Makefile | |||
| @@ -12,7 +12,6 @@ usbserial-obj-$(CONFIG_USB_EZUSB) += ezusb.o | |||
| 12 | usbserial-objs := usb-serial.o generic.o bus.o $(usbserial-obj-y) | 12 | usbserial-objs := usb-serial.o generic.o bus.o $(usbserial-obj-y) |
| 13 | 13 | ||
| 14 | obj-$(CONFIG_USB_SERIAL_AIRPRIME) += airprime.o | 14 | obj-$(CONFIG_USB_SERIAL_AIRPRIME) += airprime.o |
| 15 | obj-$(CONFIG_USB_SERIAL_ANYDATA) += anydata.o | ||
| 16 | obj-$(CONFIG_USB_SERIAL_ARK3116) += ark3116.o | 15 | obj-$(CONFIG_USB_SERIAL_ARK3116) += ark3116.o |
| 17 | obj-$(CONFIG_USB_SERIAL_BELKIN) += belkin_sa.o | 16 | obj-$(CONFIG_USB_SERIAL_BELKIN) += belkin_sa.o |
| 18 | obj-$(CONFIG_USB_SERIAL_CP2101) += cp2101.o | 17 | obj-$(CONFIG_USB_SERIAL_CP2101) += cp2101.o |
diff --git a/drivers/usb/serial/anydata.c b/drivers/usb/serial/anydata.c deleted file mode 100644 index 01843ef8c11e..000000000000 --- a/drivers/usb/serial/anydata.c +++ /dev/null | |||
| @@ -1,123 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * AnyData CDMA Serial USB driver | ||
| 3 | * | ||
| 4 | * Copyright (C) 2005 Greg Kroah-Hartman <gregkh@suse.de> | ||
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of the GNU General Public License version | ||
| 8 | * 2 as published by the Free Software Foundation. | ||
| 9 | */ | ||
| 10 | |||
| 11 | #include <linux/kernel.h> | ||
| 12 | #include <linux/init.h> | ||
| 13 | #include <linux/tty.h> | ||
| 14 | #include <linux/module.h> | ||
| 15 | #include <linux/usb.h> | ||
| 16 | #include <linux/usb/serial.h> | ||
| 17 | |||
| 18 | static struct usb_device_id id_table [] = { | ||
| 19 | { USB_DEVICE(0x16d5, 0x6501) }, /* AirData CDMA device */ | ||
| 20 | { }, | ||
| 21 | }; | ||
| 22 | MODULE_DEVICE_TABLE(usb, id_table); | ||
| 23 | |||
| 24 | /* if overridden by the user, then use their value for the size of the | ||
| 25 | * read and write urbs */ | ||
| 26 | static int buffer_size; | ||
| 27 | static int debug; | ||
| 28 | |||
| 29 | static struct usb_driver anydata_driver = { | ||
| 30 | .name = "anydata", | ||
| 31 | .probe = usb_serial_probe, | ||
| 32 | .disconnect = usb_serial_disconnect, | ||
| 33 | .id_table = id_table, | ||
| 34 | .no_dynamic_id = 1, | ||
| 35 | }; | ||
| 36 | |||
| 37 | static int anydata_open(struct usb_serial_port *port, struct file *filp) | ||
| 38 | { | ||
| 39 | char *buffer; | ||
| 40 | int result = 0; | ||
| 41 | |||
| 42 | dbg("%s - port %d", __FUNCTION__, port->number); | ||
| 43 | |||
| 44 | if (buffer_size) { | ||
| 45 | /* override the default buffer sizes */ | ||
| 46 | buffer = kmalloc(buffer_size, GFP_KERNEL); | ||
| 47 | if (!buffer) { | ||
| 48 | dev_err(&port->dev, "%s - out of memory.\n", | ||
| 49 | __FUNCTION__); | ||
| 50 | return -ENOMEM; | ||
| 51 | } | ||
| 52 | kfree (port->read_urb->transfer_buffer); | ||
| 53 | port->read_urb->transfer_buffer = buffer; | ||
| 54 | port->read_urb->transfer_buffer_length = buffer_size; | ||
| 55 | |||
| 56 | buffer = kmalloc(buffer_size, GFP_KERNEL); | ||
| 57 | if (!buffer) { | ||
| 58 | dev_err(&port->dev, "%s - out of memory.\n", | ||
| 59 | __FUNCTION__); | ||
| 60 | return -ENOMEM; | ||
| 61 | } | ||
| 62 | kfree (port->write_urb->transfer_buffer); | ||
| 63 | port->write_urb->transfer_buffer = buffer; | ||
| 64 | port->write_urb->transfer_buffer_length = buffer_size; | ||
| 65 | port->bulk_out_size = buffer_size; | ||
| 66 | } | ||
| 67 | |||
| 68 | /* Start reading from the device */ | ||
| 69 | usb_fill_bulk_urb(port->read_urb, port->serial->dev, | ||
| 70 | usb_rcvbulkpipe(port->serial->dev, | ||
| 71 | port->bulk_in_endpointAddress), | ||
| 72 | port->read_urb->transfer_buffer, | ||
| 73 | port->read_urb->transfer_buffer_length, | ||
| 74 | usb_serial_generic_read_bulk_callback, port); | ||
| 75 | result = usb_submit_urb(port->read_urb, GFP_KERNEL); | ||
| 76 | if (result) | ||
| 77 | dev_err(&port->dev, | ||
| 78 | "%s - failed submitting read urb, error %d\n", | ||
| 79 | __FUNCTION__, result); | ||
| 80 | |||
| 81 | return result; | ||
| 82 | } | ||
| 83 | |||
| 84 | static struct usb_serial_driver anydata_device = { | ||
| 85 | .driver = { | ||
| 86 | .owner = THIS_MODULE, | ||
| 87 | .name = "anydata", | ||
| 88 | }, | ||
| 89 | .id_table = id_table, | ||
| 90 | .num_interrupt_in = NUM_DONT_CARE, | ||
| 91 | .num_bulk_in = NUM_DONT_CARE, | ||
| 92 | .num_bulk_out = NUM_DONT_CARE, | ||
| 93 | .num_ports = 1, | ||
| 94 | .open = anydata_open, | ||
| 95 | }; | ||
| 96 | |||
| 97 | static int __init anydata_init(void) | ||
| 98 | { | ||
| 99 | int retval; | ||
| 100 | |||
| 101 | retval = usb_serial_register(&anydata_device); | ||
| 102 | if (retval) | ||
| 103 | return retval; | ||
| 104 | retval = usb_register(&anydata_driver); | ||
| 105 | if (retval) | ||
| 106 | usb_serial_deregister(&anydata_device); | ||
| 107 | return retval; | ||
| 108 | } | ||
| 109 | |||
| 110 | static void __exit anydata_exit(void) | ||
| 111 | { | ||
| 112 | usb_deregister(&anydata_driver); | ||
| 113 | usb_serial_deregister(&anydata_device); | ||
| 114 | } | ||
| 115 | |||
| 116 | module_init(anydata_init); | ||
| 117 | module_exit(anydata_exit); | ||
| 118 | MODULE_LICENSE("GPL"); | ||
| 119 | |||
| 120 | module_param(debug, bool, S_IRUGO | S_IWUSR); | ||
| 121 | MODULE_PARM_DESC(debug, "Debug enabled or not"); | ||
| 122 | module_param(buffer_size, int, 0); | ||
| 123 | MODULE_PARM_DESC(buffer_size, "Size of the transfer buffers"); | ||
diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index 283383df130d..b020f13b95bb 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c | |||
| @@ -72,6 +72,7 @@ static int option_send_setup(struct usb_serial_port *port); | |||
| 72 | #define AUDIOVOX_VENDOR_ID 0x0F3D | 72 | #define AUDIOVOX_VENDOR_ID 0x0F3D |
| 73 | #define SIERRAWIRELESS_VENDOR_ID 0x1199 | 73 | #define SIERRAWIRELESS_VENDOR_ID 0x1199 |
| 74 | #define NOVATELWIRELESS_VENDOR_ID 0x1410 | 74 | #define NOVATELWIRELESS_VENDOR_ID 0x1410 |
| 75 | #define ANYDATA_VENDOR_ID 0x16d5 | ||
| 75 | 76 | ||
| 76 | #define OPTION_PRODUCT_OLD 0x5000 | 77 | #define OPTION_PRODUCT_OLD 0x5000 |
| 77 | #define OPTION_PRODUCT_FUSION 0x6000 | 78 | #define OPTION_PRODUCT_FUSION 0x6000 |
| @@ -82,6 +83,7 @@ static int option_send_setup(struct usb_serial_port *port); | |||
| 82 | #define AUDIOVOX_PRODUCT_AIRCARD 0x0112 | 83 | #define AUDIOVOX_PRODUCT_AIRCARD 0x0112 |
| 83 | #define SIERRAWIRELESS_PRODUCT_MC8755 0x6802 | 84 | #define SIERRAWIRELESS_PRODUCT_MC8755 0x6802 |
| 84 | #define NOVATELWIRELESS_PRODUCT_U740 0x1400 | 85 | #define NOVATELWIRELESS_PRODUCT_U740 0x1400 |
| 86 | #define ANYDATA_PRODUCT_ID 0x6501 | ||
| 85 | 87 | ||
| 86 | static struct usb_device_id option_ids[] = { | 88 | static struct usb_device_id option_ids[] = { |
| 87 | { USB_DEVICE(OPTION_VENDOR_ID, OPTION_PRODUCT_OLD) }, | 89 | { USB_DEVICE(OPTION_VENDOR_ID, OPTION_PRODUCT_OLD) }, |
| @@ -93,6 +95,7 @@ static struct usb_device_id option_ids[] = { | |||
| 93 | { USB_DEVICE(AUDIOVOX_VENDOR_ID, AUDIOVOX_PRODUCT_AIRCARD) }, | 95 | { USB_DEVICE(AUDIOVOX_VENDOR_ID, AUDIOVOX_PRODUCT_AIRCARD) }, |
| 94 | { USB_DEVICE(SIERRAWIRELESS_VENDOR_ID, SIERRAWIRELESS_PRODUCT_MC8755) }, | 96 | { USB_DEVICE(SIERRAWIRELESS_VENDOR_ID, SIERRAWIRELESS_PRODUCT_MC8755) }, |
| 95 | { USB_DEVICE(NOVATELWIRELESS_VENDOR_ID,NOVATELWIRELESS_PRODUCT_U740) }, | 97 | { USB_DEVICE(NOVATELWIRELESS_VENDOR_ID,NOVATELWIRELESS_PRODUCT_U740) }, |
| 98 | { USB_DEVICE(ANYDATA_VENDOR_ID, ANYDATA_PRODUCT_ID) }, | ||
| 96 | { } /* Terminating entry */ | 99 | { } /* Terminating entry */ |
| 97 | }; | 100 | }; |
| 98 | 101 | ||
| @@ -105,6 +108,7 @@ static struct usb_device_id option_ids1[] = { | |||
| 105 | { USB_DEVICE(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E600) }, | 108 | { USB_DEVICE(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E600) }, |
| 106 | { USB_DEVICE(AUDIOVOX_VENDOR_ID, AUDIOVOX_PRODUCT_AIRCARD) }, | 109 | { USB_DEVICE(AUDIOVOX_VENDOR_ID, AUDIOVOX_PRODUCT_AIRCARD) }, |
| 107 | { USB_DEVICE(NOVATELWIRELESS_VENDOR_ID,NOVATELWIRELESS_PRODUCT_U740) }, | 110 | { USB_DEVICE(NOVATELWIRELESS_VENDOR_ID,NOVATELWIRELESS_PRODUCT_U740) }, |
| 111 | { USB_DEVICE(ANYDATA_VENDOR_ID, ANYDATA_PRODUCT_ID) }, | ||
| 108 | { } /* Terminating entry */ | 112 | { } /* Terminating entry */ |
| 109 | }; | 113 | }; |
| 110 | static struct usb_device_id option_ids3[] = { | 114 | static struct usb_device_id option_ids3[] = { |
