1 Index: linux-2.4.35.4/drivers/usb/serial/usbserial.c
2 ===================================================================
3 --- linux-2.4.35.4.orig/drivers/usb/serial/usbserial.c 2007-12-15 05:19:36.542503478 +0100
4 +++ linux-2.4.35.4/drivers/usb/serial/usbserial.c 2007-12-15 05:20:13.496609372 +0100
6 #ifdef CONFIG_USB_SERIAL_GENERIC
7 static __u16 vendor = 0x05f9;
8 static __u16 product = 0xffff;
9 +static int maxSize = 0;
11 static struct usb_device_id generic_device_ids[2]; /* Initially all zeroes. */
13 @@ -1557,7 +1558,11 @@
14 err("No free urbs available");
17 +#ifdef CONFIG_USB_SERIAL_GENERIC
18 + buffer_size = (endpoint->wMaxPacketSize > maxSize) ? endpoint->wMaxPacketSize : maxSize;
20 buffer_size = endpoint->wMaxPacketSize;
22 port->bulk_in_endpointAddress = endpoint->bEndpointAddress;
23 port->bulk_in_buffer = kmalloc (buffer_size, GFP_KERNEL);
24 if (!port->bulk_in_buffer) {
27 MODULE_PARM(product, "h");
28 MODULE_PARM_DESC(product, "User specified USB idProduct");
30 +MODULE_PARM(maxSize,"i");
31 +MODULE_PARM_DESC(maxSize,"User specified USB endpoint size");