diff options
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/class/cdc-acm.c | 5 | ||||
-rw-r--r-- | drivers/usb/host/ehci-hcd.c | 2 | ||||
-rw-r--r-- | drivers/usb/host/ehci-pci.c | 2 | ||||
-rw-r--r-- | drivers/usb/host/ehci-ps3.c | 2 | ||||
-rw-r--r-- | drivers/usb/host/ohci-ps3.c | 2 | ||||
-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 |
8 files changed, 13 insertions, 72 deletions
diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c index b3d5a23ab56f..869d47cb6db3 100644 --- a/drivers/usb/class/cdc-acm.c +++ b/drivers/usb/class/cdc-acm.c | |||
@@ -1358,6 +1358,9 @@ static struct usb_device_id acm_ids[] = { | |||
1358 | { USB_DEVICE(0x079b, 0x000f), /* BT On-Air USB MODEM */ | 1358 | { USB_DEVICE(0x079b, 0x000f), /* BT On-Air USB MODEM */ |
1359 | .driver_info = NO_UNION_NORMAL, /* has no union descriptor */ | 1359 | .driver_info = NO_UNION_NORMAL, /* has no union descriptor */ |
1360 | }, | 1360 | }, |
1361 | { USB_DEVICE(0x0ace, 0x1602), /* ZyDAS 56K USB MODEM */ | ||
1362 | .driver_info = SINGLE_RX_URB, | ||
1363 | }, | ||
1361 | { USB_DEVICE(0x0ace, 0x1608), /* ZyDAS 56K USB MODEM */ | 1364 | { USB_DEVICE(0x0ace, 0x1608), /* ZyDAS 56K USB MODEM */ |
1362 | .driver_info = SINGLE_RX_URB, /* firmware bug */ | 1365 | .driver_info = SINGLE_RX_URB, /* firmware bug */ |
1363 | }, | 1366 | }, |
@@ -1493,4 +1496,4 @@ module_exit(acm_exit); | |||
1493 | MODULE_AUTHOR( DRIVER_AUTHOR ); | 1496 | MODULE_AUTHOR( DRIVER_AUTHOR ); |
1494 | MODULE_DESCRIPTION( DRIVER_DESC ); | 1497 | MODULE_DESCRIPTION( DRIVER_DESC ); |
1495 | MODULE_LICENSE("GPL"); | 1498 | MODULE_LICENSE("GPL"); |
1496 | 1499 | MODULE_ALIAS_CHARDEV_MAJOR(ACM_TTY_MAJOR); | |
diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index f2618d17710d..c637207a1c80 100644 --- a/drivers/usb/host/ehci-hcd.c +++ b/drivers/usb/host/ehci-hcd.c | |||
@@ -622,7 +622,7 @@ static int ehci_run (struct usb_hcd *hcd) | |||
622 | ehci_writel(ehci, 0, &ehci->regs->segment); | 622 | ehci_writel(ehci, 0, &ehci->regs->segment); |
623 | #if 0 | 623 | #if 0 |
624 | // this is deeply broken on almost all architectures | 624 | // this is deeply broken on almost all architectures |
625 | if (!dma_set_mask(hcd->self.controller, DMA_64BIT_MASK)) | 625 | if (!dma_set_mask(hcd->self.controller, DMA_BIT_MASK(64))) |
626 | ehci_info(ehci, "enabled 64bit DMA\n"); | 626 | ehci_info(ehci, "enabled 64bit DMA\n"); |
627 | #endif | 627 | #endif |
628 | } | 628 | } |
diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c index abb9a7706ec7..5aa8bce90e1f 100644 --- a/drivers/usb/host/ehci-pci.c +++ b/drivers/usb/host/ehci-pci.c | |||
@@ -108,7 +108,7 @@ static int ehci_pci_setup(struct usb_hcd *hcd) | |||
108 | case 0x00d8: /* CK8 */ | 108 | case 0x00d8: /* CK8 */ |
109 | case 0x00e8: /* CK8S */ | 109 | case 0x00e8: /* CK8S */ |
110 | if (pci_set_consistent_dma_mask(pdev, | 110 | if (pci_set_consistent_dma_mask(pdev, |
111 | DMA_31BIT_MASK) < 0) | 111 | DMA_BIT_MASK(31)) < 0) |
112 | ehci_warn(ehci, "can't enable NVidia " | 112 | ehci_warn(ehci, "can't enable NVidia " |
113 | "workaround for >2GB RAM\n"); | 113 | "workaround for >2GB RAM\n"); |
114 | break; | 114 | break; |
diff --git a/drivers/usb/host/ehci-ps3.c b/drivers/usb/host/ehci-ps3.c index 9c9da35abc6c..1ba9f9a8c308 100644 --- a/drivers/usb/host/ehci-ps3.c +++ b/drivers/usb/host/ehci-ps3.c | |||
@@ -81,7 +81,7 @@ static int ps3_ehci_probe(struct ps3_system_bus_device *dev) | |||
81 | int result; | 81 | int result; |
82 | struct usb_hcd *hcd; | 82 | struct usb_hcd *hcd; |
83 | unsigned int virq; | 83 | unsigned int virq; |
84 | static u64 dummy_mask = DMA_32BIT_MASK; | 84 | static u64 dummy_mask = DMA_BIT_MASK(32); |
85 | 85 | ||
86 | if (usb_disabled()) { | 86 | if (usb_disabled()) { |
87 | result = -ENODEV; | 87 | result = -ENODEV; |
diff --git a/drivers/usb/host/ohci-ps3.c b/drivers/usb/host/ohci-ps3.c index 3c1a3b5f89f1..3d1910317328 100644 --- a/drivers/usb/host/ohci-ps3.c +++ b/drivers/usb/host/ohci-ps3.c | |||
@@ -80,7 +80,7 @@ static int ps3_ohci_probe(struct ps3_system_bus_device *dev) | |||
80 | int result; | 80 | int result; |
81 | struct usb_hcd *hcd; | 81 | struct usb_hcd *hcd; |
82 | unsigned int virq; | 82 | unsigned int virq; |
83 | static u64 dummy_mask = DMA_32BIT_MASK; | 83 | static u64 dummy_mask = DMA_BIT_MASK(32); |
84 | 84 | ||
85 | if (usb_disabled()) { | 85 | if (usb_disabled()) { |
86 | result = -ENODEV; | 86 | result = -ENODEV; |
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) |