diff options
| author | Ingo Molnar <mingo@elte.hu> | 2009-04-08 11:02:50 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2009-04-08 11:02:57 -0400 |
| commit | ff96e612cba32510e263e17b213235fe5746397e (patch) | |
| tree | a8df57d76b10e0901a4fb76cd2987eb9826a560a /drivers/usb/serial | |
| parent | cd84a42f315e50edd454c27a3da3951ccd3d735a (diff) | |
| parent | 577c9c456f0e1371cbade38eaf91ae8e8a308555 (diff) | |
Merge commit 'v2.6.30-rc1' into core/urgent
Merge reason: need latest upstream to queue up dependent fix
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'drivers/usb/serial')
| -rw-r--r-- | drivers/usb/serial/ChangeLog.history | 2 | ||||
| -rw-r--r-- | drivers/usb/serial/Kconfig | 4 | ||||
| -rw-r--r-- | drivers/usb/serial/pl2303.c | 1 | ||||
| -rw-r--r-- | drivers/usb/serial/pl2303.h | 4 | ||||
| -rw-r--r-- | drivers/usb/serial/symbolserial.c | 67 |
5 files changed, 8 insertions, 70 deletions
diff --git a/drivers/usb/serial/ChangeLog.history b/drivers/usb/serial/ChangeLog.history index c1b279939bbf..f13fd488ebec 100644 --- a/drivers/usb/serial/ChangeLog.history +++ b/drivers/usb/serial/ChangeLog.history | |||
| @@ -715,7 +715,7 @@ io_edgeport.c Change Log comments: | |||
| 715 | 715 | ||
| 716 | 0.2 (01/30/2000) greg kroah-hartman | 716 | 0.2 (01/30/2000) greg kroah-hartman |
| 717 | Milestone 1 release. | 717 | Milestone 1 release. |
| 718 | Device is found by USB subsystem, enumerated, fimware is downloaded | 718 | Device is found by USB subsystem, enumerated, firmware is downloaded |
| 719 | and the descriptors are printed to the debug log, config is set, and | 719 | and the descriptors are printed to the debug log, config is set, and |
| 720 | green light starts to blink. Open port works, and data can be sent | 720 | green light starts to blink. Open port works, and data can be sent |
| 721 | and received at the default settings of the UART. Loopback connector | 721 | and received at the default settings of the UART. Loopback connector |
diff --git a/drivers/usb/serial/Kconfig b/drivers/usb/serial/Kconfig index a65f9196b0a0..c480ea4c19f2 100644 --- a/drivers/usb/serial/Kconfig +++ b/drivers/usb/serial/Kconfig | |||
| @@ -518,8 +518,8 @@ config USB_SERIAL_SIERRAWIRELESS | |||
| 518 | help | 518 | help |
| 519 | Say M here if you want to use Sierra Wireless devices. | 519 | Say M here if you want to use Sierra Wireless devices. |
| 520 | 520 | ||
| 521 | Many deviecs have a feature known as TRU-Install, for those devices | 521 | Many devices have a feature known as TRU-Install. For those devices |
| 522 | to work properly the USB Storage Sierra feature must be enabled. | 522 | to work properly, the USB Storage Sierra feature must be enabled. |
| 523 | 523 | ||
| 524 | To compile this driver as a module, choose M here: the | 524 | To compile this driver as a module, choose M here: the |
| 525 | module will be called sierra. | 525 | module will be called sierra. |
diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c index 1aed584be5eb..751a533a4347 100644 --- a/drivers/usb/serial/pl2303.c +++ b/drivers/usb/serial/pl2303.c | |||
| @@ -79,6 +79,7 @@ static struct usb_device_id id_table [] = { | |||
| 79 | { USB_DEVICE(SIEMENS_VENDOR_ID, SIEMENS_PRODUCT_ID_X65) }, | 79 | { USB_DEVICE(SIEMENS_VENDOR_ID, SIEMENS_PRODUCT_ID_X65) }, |
| 80 | { USB_DEVICE(SIEMENS_VENDOR_ID, SIEMENS_PRODUCT_ID_X75) }, | 80 | { USB_DEVICE(SIEMENS_VENDOR_ID, SIEMENS_PRODUCT_ID_X75) }, |
| 81 | { USB_DEVICE(SIEMENS_VENDOR_ID, SIEMENS_PRODUCT_ID_EF81) }, | 81 | { USB_DEVICE(SIEMENS_VENDOR_ID, SIEMENS_PRODUCT_ID_EF81) }, |
| 82 | { USB_DEVICE(BENQ_VENDOR_ID, BENQ_PRODUCT_ID_S81) }, /* Benq/Siemens S81 */ | ||
| 82 | { USB_DEVICE(SYNTECH_VENDOR_ID, SYNTECH_PRODUCT_ID) }, | 83 | { USB_DEVICE(SYNTECH_VENDOR_ID, SYNTECH_PRODUCT_ID) }, |
| 83 | { USB_DEVICE(NOKIA_CA42_VENDOR_ID, NOKIA_CA42_PRODUCT_ID) }, | 84 | { USB_DEVICE(NOKIA_CA42_VENDOR_ID, NOKIA_CA42_PRODUCT_ID) }, |
| 84 | { USB_DEVICE(CA_42_CA42_VENDOR_ID, CA_42_CA42_PRODUCT_ID) }, | 85 | { USB_DEVICE(CA_42_CA42_VENDOR_ID, CA_42_CA42_PRODUCT_ID) }, |
diff --git a/drivers/usb/serial/pl2303.h b/drivers/usb/serial/pl2303.h index 54974f446a8c..1d7a22e3a9fd 100644 --- a/drivers/usb/serial/pl2303.h +++ b/drivers/usb/serial/pl2303.h | |||
| @@ -7,6 +7,10 @@ | |||
| 7 | * (at your option) any later version. | 7 | * (at your option) any later version. |
| 8 | * | 8 | * |
| 9 | */ | 9 | */ |
| 10 | |||
| 11 | #define BENQ_VENDOR_ID 0x04a5 | ||
| 12 | #define BENQ_PRODUCT_ID_S81 0x4027 | ||
| 13 | |||
| 10 | #define PL2303_VENDOR_ID 0x067b | 14 | #define PL2303_VENDOR_ID 0x067b |
| 11 | #define PL2303_PRODUCT_ID 0x2303 | 15 | #define PL2303_PRODUCT_ID 0x2303 |
| 12 | #define PL2303_PRODUCT_ID_RSAQ2 0x04bb | 16 | #define PL2303_PRODUCT_ID_RSAQ2 0x04bb |
diff --git a/drivers/usb/serial/symbolserial.c b/drivers/usb/serial/symbolserial.c index 8b3cbc87adc7..69879e437940 100644 --- a/drivers/usb/serial/symbolserial.c +++ b/drivers/usb/serial/symbolserial.c | |||
| @@ -139,14 +139,6 @@ static int symbol_open(struct tty_struct *tty, struct usb_serial_port *port, | |||
| 139 | priv->port = port; | 139 | priv->port = port; |
| 140 | spin_unlock_irqrestore(&priv->lock, flags); | 140 | spin_unlock_irqrestore(&priv->lock, flags); |
| 141 | 141 | ||
| 142 | /* | ||
| 143 | * Force low_latency on so that our tty_push actually forces the data | ||
| 144 | * through, otherwise it is scheduled, and with high data rates (like | ||
| 145 | * with OHCI) data can get lost. | ||
| 146 | */ | ||
| 147 | if (tty) | ||
| 148 | tty->low_latency = 1; | ||
| 149 | |||
| 150 | /* Start reading from the device */ | 142 | /* Start reading from the device */ |
| 151 | usb_fill_int_urb(priv->int_urb, priv->udev, | 143 | usb_fill_int_urb(priv->int_urb, priv->udev, |
| 152 | usb_rcvintpipe(priv->udev, priv->int_address), | 144 | usb_rcvintpipe(priv->udev, priv->int_address), |
| @@ -205,62 +197,6 @@ static void symbol_unthrottle(struct tty_struct *tty) | |||
| 205 | __func__, result); | 197 | __func__, result); |
| 206 | } | 198 | } |
| 207 | 199 | ||
| 208 | static int symbol_ioctl(struct tty_struct *tty, struct file *file, | ||
| 209 | unsigned int cmd, unsigned long arg) | ||
| 210 | { | ||
| 211 | struct usb_serial_port *port = tty->driver_data; | ||
| 212 | struct device *dev = &port->dev; | ||
| 213 | |||
| 214 | /* | ||
| 215 | * Right now we need to figure out what commands | ||
| 216 | * most userspace tools want to see for this driver, | ||
| 217 | * so just log the things. | ||
| 218 | */ | ||
| 219 | switch (cmd) { | ||
| 220 | case TIOCSERGETLSR: | ||
| 221 | dev_info(dev, "%s: TIOCSERGETLSR\n", __func__); | ||
| 222 | break; | ||
| 223 | |||
| 224 | case TIOCGSERIAL: | ||
| 225 | dev_info(dev, "%s: TIOCGSERIAL\n", __func__); | ||
| 226 | break; | ||
| 227 | |||
| 228 | case TIOCMIWAIT: | ||
| 229 | dev_info(dev, "%s: TIOCMIWAIT\n", __func__); | ||
| 230 | break; | ||
| 231 | |||
| 232 | case TIOCGICOUNT: | ||
| 233 | dev_info(dev, "%s: TIOCGICOUNT\n", __func__); | ||
| 234 | break; | ||
| 235 | default: | ||
| 236 | dev_info(dev, "%s: unknown (%d)\n", __func__, cmd); | ||
| 237 | } | ||
| 238 | return -ENOIOCTLCMD; | ||
| 239 | } | ||
| 240 | |||
| 241 | static int symbol_tiocmget(struct tty_struct *tty, struct file *file) | ||
| 242 | { | ||
| 243 | struct usb_serial_port *port = tty->driver_data; | ||
| 244 | struct device *dev = &port->dev; | ||
| 245 | |||
| 246 | /* TODO */ | ||
| 247 | /* probably just need to shadow whatever was sent to us here */ | ||
| 248 | dev_info(dev, "%s\n", __func__); | ||
| 249 | return 0; | ||
| 250 | } | ||
| 251 | |||
| 252 | static int symbol_tiocmset(struct tty_struct *tty, struct file *file, | ||
| 253 | unsigned int set, unsigned int clear) | ||
| 254 | { | ||
| 255 | struct usb_serial_port *port = tty->driver_data; | ||
| 256 | struct device *dev = &port->dev; | ||
| 257 | |||
| 258 | /* TODO */ | ||
| 259 | /* probably just need to shadow whatever was sent to us here */ | ||
| 260 | dev_info(dev, "%s\n", __func__); | ||
| 261 | return 0; | ||
| 262 | } | ||
| 263 | |||
| 264 | static int symbol_startup(struct usb_serial *serial) | 200 | static int symbol_startup(struct usb_serial *serial) |
| 265 | { | 201 | { |
| 266 | struct symbol_private *priv; | 202 | struct symbol_private *priv; |
| @@ -367,9 +303,6 @@ static struct usb_serial_driver symbol_device = { | |||
| 367 | .shutdown = symbol_shutdown, | 303 | .shutdown = symbol_shutdown, |
| 368 | .throttle = symbol_throttle, | 304 | .throttle = symbol_throttle, |
| 369 | .unthrottle = symbol_unthrottle, | 305 | .unthrottle = symbol_unthrottle, |
| 370 | .ioctl = symbol_ioctl, | ||
| 371 | .tiocmget = symbol_tiocmget, | ||
| 372 | .tiocmset = symbol_tiocmset, | ||
| 373 | }; | 306 | }; |
| 374 | 307 | ||
| 375 | static int __init symbol_init(void) | 308 | static int __init symbol_init(void) |
