提交 333396fc 编写于 作者: J Johan Hovold 提交者: Greg Kroah-Hartman

USB: opticon: increase bulk-in size

Use 256 byte bulk-in buffers rather than double end-point sized ones.
Signed-off-by: NJohan Hovold <jhovold@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 e32d82bc
......@@ -492,7 +492,7 @@ static int opticon_port_probe(struct usb_serial_port *port)
if (!priv->bulk_read_urb)
goto error;
priv->buffer_size = 2 * port->bulk_in_size;
priv->buffer_size = port->bulk_in_size;
priv->bulk_in_buffer = kmalloc(priv->buffer_size, GFP_KERNEL);
if (!priv->bulk_in_buffer)
goto error;
......@@ -559,6 +559,7 @@ static struct usb_serial_driver opticon_device = {
},
.id_table = id_table,
.num_ports = 1,
.bulk_in_size = 256,
.attach = opticon_startup,
.port_probe = opticon_port_probe,
.port_remove = opticon_port_remove,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册