diff options
Diffstat (limited to 'drivers/usb/serial')
| -rw-r--r-- | drivers/usb/serial/ftdi_sio.c | 2 | ||||
| -rw-r--r-- | drivers/usb/serial/ftdi_sio.h | 6 | ||||
| -rw-r--r-- | drivers/usb/serial/pl2303.c | 2 | ||||
| -rw-r--r-- | drivers/usb/serial/pl2303.h | 8 | ||||
| -rw-r--r-- | drivers/usb/serial/ti_usb_3410_5052.c | 55 |
5 files changed, 21 insertions, 52 deletions
diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c index aad1359a3eb..fb6f2933b01 100644 --- a/drivers/usb/serial/ftdi_sio.c +++ b/drivers/usb/serial/ftdi_sio.c | |||
| @@ -143,6 +143,7 @@ static struct ftdi_sio_quirk ftdi_HE_TIRA1_quirk = { | |||
| 143 | static struct usb_device_id id_table_combined [] = { | 143 | static struct usb_device_id id_table_combined [] = { |
| 144 | { USB_DEVICE(FTDI_VID, FTDI_AMC232_PID) }, | 144 | { USB_DEVICE(FTDI_VID, FTDI_AMC232_PID) }, |
| 145 | { USB_DEVICE(FTDI_VID, FTDI_CANUSB_PID) }, | 145 | { USB_DEVICE(FTDI_VID, FTDI_CANUSB_PID) }, |
| 146 | { USB_DEVICE(FTDI_VID, FTDI_CANDAPTER_PID) }, | ||
| 146 | { USB_DEVICE(FTDI_VID, FTDI_SCS_DEVICE_0_PID) }, | 147 | { USB_DEVICE(FTDI_VID, FTDI_SCS_DEVICE_0_PID) }, |
| 147 | { USB_DEVICE(FTDI_VID, FTDI_SCS_DEVICE_1_PID) }, | 148 | { USB_DEVICE(FTDI_VID, FTDI_SCS_DEVICE_1_PID) }, |
| 148 | { USB_DEVICE(FTDI_VID, FTDI_SCS_DEVICE_2_PID) }, | 149 | { USB_DEVICE(FTDI_VID, FTDI_SCS_DEVICE_2_PID) }, |
| @@ -166,6 +167,7 @@ static struct usb_device_id id_table_combined [] = { | |||
| 166 | { USB_DEVICE(FTDI_VID, FTDI_OPENDCC_PID) }, | 167 | { USB_DEVICE(FTDI_VID, FTDI_OPENDCC_PID) }, |
| 167 | { USB_DEVICE(INTERBIOMETRICS_VID, INTERBIOMETRICS_IOBOARD_PID) }, | 168 | { USB_DEVICE(INTERBIOMETRICS_VID, INTERBIOMETRICS_IOBOARD_PID) }, |
| 168 | { USB_DEVICE(INTERBIOMETRICS_VID, INTERBIOMETRICS_MINI_IOBOARD_PID) }, | 169 | { USB_DEVICE(INTERBIOMETRICS_VID, INTERBIOMETRICS_MINI_IOBOARD_PID) }, |
| 170 | { USB_DEVICE(FTDI_VID, FTDI_SPROG_II) }, | ||
| 169 | { USB_DEVICE(FTDI_VID, FTDI_XF_632_PID) }, | 171 | { USB_DEVICE(FTDI_VID, FTDI_XF_632_PID) }, |
| 170 | { USB_DEVICE(FTDI_VID, FTDI_XF_634_PID) }, | 172 | { USB_DEVICE(FTDI_VID, FTDI_XF_634_PID) }, |
| 171 | { USB_DEVICE(FTDI_VID, FTDI_XF_547_PID) }, | 173 | { USB_DEVICE(FTDI_VID, FTDI_XF_547_PID) }, |
diff --git a/drivers/usb/serial/ftdi_sio.h b/drivers/usb/serial/ftdi_sio.h index 07a3992abad..373ee09975b 100644 --- a/drivers/usb/serial/ftdi_sio.h +++ b/drivers/usb/serial/ftdi_sio.h | |||
| @@ -40,6 +40,9 @@ | |||
| 40 | /* AlphaMicro Components AMC-232USB01 device */ | 40 | /* AlphaMicro Components AMC-232USB01 device */ |
| 41 | #define FTDI_AMC232_PID 0xFF00 /* Product Id */ | 41 | #define FTDI_AMC232_PID 0xFF00 /* Product Id */ |
| 42 | 42 | ||
| 43 | /* www.candapter.com Ewert Energy Systems CANdapter device */ | ||
| 44 | #define FTDI_CANDAPTER_PID 0x9F80 /* Product Id */ | ||
| 45 | |||
| 43 | /* SCS HF Radio Modems PID's (http://www.scs-ptc.com) */ | 46 | /* SCS HF Radio Modems PID's (http://www.scs-ptc.com) */ |
| 44 | /* the VID is the standard ftdi vid (FTDI_VID) */ | 47 | /* the VID is the standard ftdi vid (FTDI_VID) */ |
| 45 | #define FTDI_SCS_DEVICE_0_PID 0xD010 /* SCS PTC-IIusb */ | 48 | #define FTDI_SCS_DEVICE_0_PID 0xD010 /* SCS PTC-IIusb */ |
| @@ -75,6 +78,9 @@ | |||
| 75 | /* OpenDCC (www.opendcc.de) product id */ | 78 | /* OpenDCC (www.opendcc.de) product id */ |
| 76 | #define FTDI_OPENDCC_PID 0xBFD8 | 79 | #define FTDI_OPENDCC_PID 0xBFD8 |
| 77 | 80 | ||
| 81 | /* Sprog II (Andrew Crosland's SprogII DCC interface) */ | ||
| 82 | #define FTDI_SPROG_II 0xF0C8 | ||
| 83 | |||
| 78 | /* www.crystalfontz.com devices - thanx for providing free devices for evaluation ! */ | 84 | /* www.crystalfontz.com devices - thanx for providing free devices for evaluation ! */ |
| 79 | /* they use the ftdi chipset for the USB interface and the vendor id is the same */ | 85 | /* they use the ftdi chipset for the USB interface and the vendor id is the same */ |
| 80 | #define FTDI_XF_632_PID 0xFC08 /* 632: 16x2 Character Display */ | 86 | #define FTDI_XF_632_PID 0xFC08 /* 632: 16x2 Character Display */ |
diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c index 491c8857b64..1aed584be5e 100644 --- a/drivers/usb/serial/pl2303.c +++ b/drivers/usb/serial/pl2303.c | |||
| @@ -91,6 +91,8 @@ static struct usb_device_id id_table [] = { | |||
| 91 | { USB_DEVICE(WS002IN_VENDOR_ID, WS002IN_PRODUCT_ID) }, | 91 | { USB_DEVICE(WS002IN_VENDOR_ID, WS002IN_PRODUCT_ID) }, |
| 92 | { USB_DEVICE(COREGA_VENDOR_ID, COREGA_PRODUCT_ID) }, | 92 | { USB_DEVICE(COREGA_VENDOR_ID, COREGA_PRODUCT_ID) }, |
| 93 | { USB_DEVICE(YCCABLE_VENDOR_ID, YCCABLE_PRODUCT_ID) }, | 93 | { USB_DEVICE(YCCABLE_VENDOR_ID, YCCABLE_PRODUCT_ID) }, |
| 94 | { USB_DEVICE(SUPERIAL_VENDOR_ID, SUPERIAL_PRODUCT_ID) }, | ||
| 95 | { USB_DEVICE(HP_VENDOR_ID, HP_LD220_PRODUCT_ID) }, | ||
| 94 | { } /* Terminating entry */ | 96 | { } /* Terminating entry */ |
| 95 | }; | 97 | }; |
| 96 | 98 | ||
diff --git a/drivers/usb/serial/pl2303.h b/drivers/usb/serial/pl2303.h index a3bd039c78e..54974f446a8 100644 --- a/drivers/usb/serial/pl2303.h +++ b/drivers/usb/serial/pl2303.h | |||
| @@ -110,3 +110,11 @@ | |||
| 110 | /* Y.C. Cable U.S.A., Inc - USB to RS-232 */ | 110 | /* Y.C. Cable U.S.A., Inc - USB to RS-232 */ |
| 111 | #define YCCABLE_VENDOR_ID 0x05ad | 111 | #define YCCABLE_VENDOR_ID 0x05ad |
| 112 | #define YCCABLE_PRODUCT_ID 0x0fba | 112 | #define YCCABLE_PRODUCT_ID 0x0fba |
| 113 | |||
| 114 | /* "Superial" USB - Serial */ | ||
| 115 | #define SUPERIAL_VENDOR_ID 0x5372 | ||
| 116 | #define SUPERIAL_PRODUCT_ID 0x2303 | ||
| 117 | |||
| 118 | /* Hewlett-Packard LD220-HP POS Pole Display */ | ||
| 119 | #define HP_VENDOR_ID 0x03f0 | ||
| 120 | #define HP_LD220_PRODUCT_ID 0x3524 | ||
diff --git a/drivers/usb/serial/ti_usb_3410_5052.c b/drivers/usb/serial/ti_usb_3410_5052.c index 31c42d1cae1..01d0c70d60e 100644 --- a/drivers/usb/serial/ti_usb_3410_5052.c +++ b/drivers/usb/serial/ti_usb_3410_5052.c | |||
| @@ -16,56 +16,6 @@ | |||
| 16 | * For questions or problems with this driver, contact Texas Instruments | 16 | * For questions or problems with this driver, contact Texas Instruments |
| 17 | * technical support, or Al Borchers <alborchers@steinerpoint.com>, or | 17 | * technical support, or Al Borchers <alborchers@steinerpoint.com>, or |
| 18 | * Peter Berger <pberger@brimson.com>. | 18 | * Peter Berger <pberger@brimson.com>. |
| 19 | * | ||
| 20 | * This driver needs this hotplug script in /etc/hotplug/usb/ti_usb_3410_5052 | ||
| 21 | * or in /etc/hotplug.d/usb/ti_usb_3410_5052.hotplug to set the device | ||
| 22 | * configuration. | ||
| 23 | * | ||
| 24 | * #!/bin/bash | ||
| 25 | * | ||
| 26 | * BOOT_CONFIG=1 | ||
| 27 | * ACTIVE_CONFIG=2 | ||
| 28 | * | ||
| 29 | * if [[ "$ACTION" != "add" ]] | ||
| 30 | * then | ||
| 31 | * exit | ||
| 32 | * fi | ||
| 33 | * | ||
| 34 | * CONFIG_PATH=/sys${DEVPATH%/?*}/bConfigurationValue | ||
| 35 | * | ||
| 36 | * if [[ 0`cat $CONFIG_PATH` -ne $BOOT_CONFIG ]] | ||
| 37 | * then | ||
| 38 | * exit | ||
| 39 | * fi | ||
| 40 | * | ||
| 41 | * PRODUCT=${PRODUCT%/?*} # delete version | ||
| 42 | * VENDOR_ID=`printf "%d" 0x${PRODUCT%/?*}` | ||
| 43 | * PRODUCT_ID=`printf "%d" 0x${PRODUCT#*?/}` | ||
| 44 | * | ||
| 45 | * PARAM_PATH=/sys/module/ti_usb_3410_5052/parameters | ||
| 46 | * | ||
| 47 | * function scan() { | ||
| 48 | * s=$1 | ||
| 49 | * shift | ||
| 50 | * for i | ||
| 51 | * do | ||
| 52 | * if [[ $s -eq $i ]] | ||
| 53 | * then | ||
| 54 | * return 0 | ||
| 55 | * fi | ||
| 56 | * done | ||
| 57 | * return 1 | ||
| 58 | * } | ||
| 59 | * | ||
| 60 | * IFS=$IFS, | ||
| 61 | * | ||
| 62 | * if (scan $VENDOR_ID 1105 `cat $PARAM_PATH/vendor_3410` && | ||
| 63 | * scan $PRODUCT_ID 13328 `cat $PARAM_PATH/product_3410`) || | ||
| 64 | * (scan $VENDOR_ID 1105 `cat $PARAM_PATH/vendor_5052` && | ||
| 65 | * scan $PRODUCT_ID 20562 20818 20570 20575 `cat $PARAM_PATH/product_5052`) | ||
| 66 | * then | ||
| 67 | * echo $ACTIVE_CONFIG > $CONFIG_PATH | ||
| 68 | * fi | ||
| 69 | */ | 19 | */ |
| 70 | 20 | ||
| 71 | #include <linux/kernel.h> | 21 | #include <linux/kernel.h> |
| @@ -457,9 +407,10 @@ static int ti_startup(struct usb_serial *serial) | |||
| 457 | goto free_tdev; | 407 | goto free_tdev; |
| 458 | } | 408 | } |
| 459 | 409 | ||
| 460 | /* the second configuration must be set (in sysfs by hotplug script) */ | 410 | /* the second configuration must be set */ |
| 461 | if (dev->actconfig->desc.bConfigurationValue == TI_BOOT_CONFIG) { | 411 | if (dev->actconfig->desc.bConfigurationValue == TI_BOOT_CONFIG) { |
| 462 | status = -ENODEV; | 412 | status = usb_driver_set_configuration(dev, TI_ACTIVE_CONFIG); |
| 413 | status = status ? status : -ENODEV; | ||
| 463 | goto free_tdev; | 414 | goto free_tdev; |
| 464 | } | 415 | } |
| 465 | 416 | ||
