32078f915d
This is now set by the usb-serial core, no need for the driver to individually set it. Thanks to Alan Stern for the idea to get rid of it. Cc: William Greathouse <wgreathouse@smva.com> Cc: Matthias Bruestle and Harald Welte <support@reiner-sct.com> Cc: Lonnie Mendez <dignome@gmail.com> Cc: Peter Berger <pberger@brimson.com> Cc: Al Borchers <alborchers@steinerpoint.com> Cc: Gary Brubaker <xavyer@ix.netcom.com> Cc: Oliver Neukum <oliver@neukum.name> Cc: Matthias Urlichs <smurf@smurf.noris.de> Cc: Support Department <support@connecttech.com> Cc: Rusty Russell <rusty@rustcorp.com.au> Cc: Alan Stern <stern@rowland.harvard.edu> Cc: Mauro Carvalho Chehab <mchehab@redhat.com> Cc: Kautuk Consul <consul.kautuk@gmail.com> Cc: Bill Pemberton <wfp5p@virginia.edu> Cc: Paul Gortmaker <paul.gortmaker@windriver.com> Cc: Bart Hartgers <bart.hartgers@gmail.com> Cc: Johan Hovold <jhovold@gmail.com> Cc: Preston Fick <preston.fick@silabs.com> Cc: Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de> Cc: Simon Arlott <simon@fire.lp0.eu> Cc: Andrew Worsley <amworsley@gmail.com> Cc: "Michał Wróbel" <michal.wrobel@flytronic.pl> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Eric Dumazet <eric.dumazet@gmail.com> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Cc: Felipe Balbi <balbi@ti.com> Cc: Aleksey Babahin <tamerlan311@gmail.com> Cc: Dan Carpenter <error27@gmail.com> Cc: Jiri Kosina <jkosina@suse.cz> Cc: Donald Lee <donald@asix.com.tw> Cc: Julia Lawall <julia@diku.dk> Cc: Michal Sroczynski <msroczyn@gmail.com> Cc: Wang YanQing <Udknight@gmail.com> Cc: Dan Williams <dcbw@redhat.com> Cc: Thomas Tuttle <ttuttle@chromium.org> Cc: Rigbert Hamisch <rigbert@gmx.de> Cc: "Rafael J. Wysocki" <rjw@sisk.pl> Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Cc: Jesper Juhl <jj@chaosbits.net> Cc: Adhir Ramjiawan <adhirramjiawan0@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
99 lines
4.1 KiB
C
99 lines
4.1 KiB
C
/*
|
|
* Qualcomm USB Auxiliary Serial Port driver
|
|
*
|
|
* Copyright (C) 2008 Greg Kroah-Hartman <greg@kroah.com>
|
|
* Copyright (C) 2010 Dan Williams <dcbw@redhat.com>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
* Devices listed here usually provide a CDC ACM port on which normal modem
|
|
* AT commands and PPP can be used. But when that port is in-use by PPP it
|
|
* cannot be used simultaneously for status or signal strength. Instead, the
|
|
* ports here can be queried for that information using the Qualcomm DM
|
|
* protocol.
|
|
*/
|
|
|
|
#include <linux/kernel.h>
|
|
#include <linux/init.h>
|
|
#include <linux/tty.h>
|
|
#include <linux/module.h>
|
|
#include <linux/usb.h>
|
|
#include <linux/usb/serial.h>
|
|
|
|
/* NOTE: for now, only use this driver for devices that provide a CDC-ACM port
|
|
* for normal AT commands, but also provide secondary USB interfaces for the
|
|
* QCDM-capable ports. Devices that do not provide a CDC-ACM port should
|
|
* probably be driven by option.ko.
|
|
*/
|
|
|
|
/* UTStarcom/Pantech/Curitel devices */
|
|
#define UTSTARCOM_VENDOR_ID 0x106c
|
|
#define UTSTARCOM_PRODUCT_PC5740 0x3701
|
|
#define UTSTARCOM_PRODUCT_PC5750 0x3702 /* aka Pantech PX-500 */
|
|
#define UTSTARCOM_PRODUCT_UM150 0x3711
|
|
#define UTSTARCOM_PRODUCT_UM175_V1 0x3712
|
|
#define UTSTARCOM_PRODUCT_UM175_V2 0x3714
|
|
#define UTSTARCOM_PRODUCT_UM175_ALLTEL 0x3715
|
|
#define PANTECH_PRODUCT_UML190_VZW 0x3716
|
|
#define PANTECH_PRODUCT_UML290_VZW 0x3718
|
|
|
|
/* CMOTECH devices */
|
|
#define CMOTECH_VENDOR_ID 0x16d8
|
|
#define CMOTECH_PRODUCT_CDU550 0x5553
|
|
#define CMOTECH_PRODUCT_CDX650 0x6512
|
|
|
|
/* LG devices */
|
|
#define LG_VENDOR_ID 0x1004
|
|
#define LG_PRODUCT_VX4400_6000 0x6000 /* VX4400/VX6000/Rumor */
|
|
|
|
/* Sanyo devices */
|
|
#define SANYO_VENDOR_ID 0x0474
|
|
#define SANYO_PRODUCT_KATANA_LX 0x0754 /* SCP-3800 (Katana LX) */
|
|
|
|
/* Samsung devices */
|
|
#define SAMSUNG_VENDOR_ID 0x04e8
|
|
#define SAMSUNG_PRODUCT_U520 0x6640 /* SCH-U520 */
|
|
|
|
static struct usb_device_id id_table[] = {
|
|
{ USB_DEVICE_AND_INTERFACE_INFO(UTSTARCOM_VENDOR_ID, UTSTARCOM_PRODUCT_PC5740, 0xff, 0x00, 0x00) },
|
|
{ USB_DEVICE_AND_INTERFACE_INFO(UTSTARCOM_VENDOR_ID, UTSTARCOM_PRODUCT_PC5750, 0xff, 0x00, 0x00) },
|
|
{ USB_DEVICE_AND_INTERFACE_INFO(UTSTARCOM_VENDOR_ID, UTSTARCOM_PRODUCT_UM150, 0xff, 0x00, 0x00) },
|
|
{ USB_DEVICE_AND_INTERFACE_INFO(UTSTARCOM_VENDOR_ID, UTSTARCOM_PRODUCT_UM175_V1, 0xff, 0x00, 0x00) },
|
|
{ USB_DEVICE_AND_INTERFACE_INFO(UTSTARCOM_VENDOR_ID, UTSTARCOM_PRODUCT_UM175_V2, 0xff, 0x00, 0x00) },
|
|
{ USB_DEVICE_AND_INTERFACE_INFO(UTSTARCOM_VENDOR_ID, UTSTARCOM_PRODUCT_UM175_ALLTEL, 0xff, 0x00, 0x00) },
|
|
{ USB_DEVICE_AND_INTERFACE_INFO(CMOTECH_VENDOR_ID, CMOTECH_PRODUCT_CDU550, 0xff, 0xff, 0x00) },
|
|
{ USB_DEVICE_AND_INTERFACE_INFO(CMOTECH_VENDOR_ID, CMOTECH_PRODUCT_CDX650, 0xff, 0xff, 0x00) },
|
|
{ USB_DEVICE_AND_INTERFACE_INFO(LG_VENDOR_ID, LG_PRODUCT_VX4400_6000, 0xff, 0xff, 0x00) },
|
|
{ USB_DEVICE_AND_INTERFACE_INFO(SANYO_VENDOR_ID, SANYO_PRODUCT_KATANA_LX, 0xff, 0xff, 0x00) },
|
|
{ USB_DEVICE_AND_INTERFACE_INFO(SAMSUNG_VENDOR_ID, SAMSUNG_PRODUCT_U520, 0xff, 0x00, 0x00) },
|
|
{ USB_DEVICE_AND_INTERFACE_INFO(UTSTARCOM_VENDOR_ID, PANTECH_PRODUCT_UML190_VZW, 0xff, 0xff, 0xff) },
|
|
{ USB_DEVICE_AND_INTERFACE_INFO(UTSTARCOM_VENDOR_ID, PANTECH_PRODUCT_UML190_VZW, 0xff, 0xfe, 0xff) },
|
|
{ USB_DEVICE_AND_INTERFACE_INFO(UTSTARCOM_VENDOR_ID, PANTECH_PRODUCT_UML290_VZW, 0xff, 0xfd, 0xff) }, /* NMEA */
|
|
{ USB_DEVICE_AND_INTERFACE_INFO(UTSTARCOM_VENDOR_ID, PANTECH_PRODUCT_UML290_VZW, 0xff, 0xfe, 0xff) }, /* WMC */
|
|
{ USB_DEVICE_AND_INTERFACE_INFO(UTSTARCOM_VENDOR_ID, PANTECH_PRODUCT_UML290_VZW, 0xff, 0xff, 0xff) }, /* DIAG */
|
|
{ },
|
|
};
|
|
MODULE_DEVICE_TABLE(usb, id_table);
|
|
|
|
static struct usb_driver qcaux_driver = {
|
|
.name = "qcaux",
|
|
.id_table = id_table,
|
|
};
|
|
|
|
static struct usb_serial_driver qcaux_device = {
|
|
.driver = {
|
|
.owner = THIS_MODULE,
|
|
.name = "qcaux",
|
|
},
|
|
.id_table = id_table,
|
|
.num_ports = 1,
|
|
};
|
|
|
|
static struct usb_serial_driver * const serial_drivers[] = {
|
|
&qcaux_device, NULL
|
|
};
|
|
|
|
module_usb_serial_driver(qcaux_driver, serial_drivers);
|
|
MODULE_LICENSE("GPL");
|