Added in sub endpoint size patch
[openwrt/svn-archive/archive.git] / target / linux / at91 / patches-2.6.25 / 017-usb_serial_endpoint_size.patch
1 --- linux-2.6.25.10.old/drivers/usb/serial/usb-serial.c 2008-07-08 07:42:24.000000000 +0200
2 +++ linux-2.6.25.10/drivers/usb/serial/usb-serial.c 2008-07-08 14:07:39.000000000 +0200
3 @@ -905,7 +905,7 @@
4 dev_err(&interface->dev, "No free urbs available\n");
5 goto probe_error;
6 }
7 - buffer_size = (endpoint->wMaxPacketSize > maxSize) ? endpoint->wMaxPacketSize : maxSize;
8 + buffer_size = 2048;
9 port->bulk_in_size = buffer_size;
10 port->bulk_in_endpointAddress = endpoint->bEndpointAddress;
11 port->bulk_in_buffer = kmalloc (buffer_size, GFP_KERNEL);