aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/opticon.c
diff options
context:
space:
mode:
authorJohan Hovold <jhovold@gmail.com>2012-11-18 07:23:33 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-11-21 16:33:55 -0500
commit333396fc703860e19eadcdc67def9caa4f3154f4 (patch)
treee3b5fc6f6c51d5a2e26dbc35e233f0196612d805 /drivers/usb/serial/opticon.c
parente32d82bcdb78f502f58d0b078395ed3864aaa223 (diff)
USB: opticon: increase bulk-in size
Use 256 byte bulk-in buffers rather than double end-point sized ones. Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial/opticon.c')
-rw-r--r--drivers/usb/serial/opticon.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/serial/opticon.c b/drivers/usb/serial/opticon.c
index 2c9137c95730..543d8c79b026 100644
--- a/drivers/usb/serial/opticon.c
+++ b/drivers/usb/serial/opticon.c
@@ -492,7 +492,7 @@ static int opticon_port_probe(struct usb_serial_port *port)
492 if (!priv->bulk_read_urb) 492 if (!priv->bulk_read_urb)
493 goto error; 493 goto error;
494 494
495 priv->buffer_size = 2 * port->bulk_in_size; 495 priv->buffer_size = port->bulk_in_size;
496 priv->bulk_in_buffer = kmalloc(priv->buffer_size, GFP_KERNEL); 496 priv->bulk_in_buffer = kmalloc(priv->buffer_size, GFP_KERNEL);
497 if (!priv->bulk_in_buffer) 497 if (!priv->bulk_in_buffer)
498 goto error; 498 goto error;
@@ -559,6 +559,7 @@ static struct usb_serial_driver opticon_device = {
559 }, 559 },
560 .id_table = id_table, 560 .id_table = id_table,
561 .num_ports = 1, 561 .num_ports = 1,
562 .bulk_in_size = 256,
562 .attach = opticon_startup, 563 .attach = opticon_startup,
563 .port_probe = opticon_port_probe, 564 .port_probe = opticon_port_probe,
564 .port_remove = opticon_port_remove, 565 .port_remove = opticon_port_remove,