1 --- linux-2.4.34-old/drivers/usb/serial/usbserial.c 2007-08-27 15:32:14.000000000 +0200
2 +++ linux-2.4.34-new/drivers/usb/serial/usbserial.c 2007-09-02 14:10:52.000000000 +0200
4 #ifdef CONFIG_USB_SERIAL_GENERIC
5 static __u16 vendor = 0x05f9;
6 static __u16 product = 0xffff;
7 +static int maxSize = 0;
9 static struct usb_device_id generic_device_ids[9]; /* Initially all zeroes. */
11 @@ -1557,7 +1558,11 @@
12 err("No free urbs available");
15 +#ifdef CONFIG_USB_SERIAL_GENERIC
16 + buffer_size = (endpoint->wMaxPacketSize > maxSize) ? endpoint->wMaxPacketSize : maxSize;
18 buffer_size = endpoint->wMaxPacketSize;
20 port->bulk_in_endpointAddress = endpoint->bEndpointAddress;
21 port->bulk_in_buffer = kmalloc (buffer_size, GFP_KERNEL);
22 if (!port->bulk_in_buffer) {
25 MODULE_PARM(product, "h");
26 MODULE_PARM_DESC(product, "User specified USB idProduct");
28 +MODULE_PARM(maxSize,"i");
29 +MODULE_PARM_DESC(maxSize,"User specified USB endpoint size");