source: trunk/target/linux/generic/patches-2.6.37/801-usb_serial_endpoint_size.patch @ 25577

Last change on this file since 25577 was 25577, checked in by florian, 5 years ago

[kernel] update to 2.6.37.1

File size: 983 bytes
  • drivers/usb/serial/usb-serial.c

    a b static struct usb_driver usb_serial_driv 
    6161   drivers depend on it. 
    6262*/ 
    6363 
     64static ushort maxSize = 0; 
    6465static int debug; 
    6566/* initially all NULL */ 
    6667static struct usb_serial *serial_table[SERIAL_TTY_MINORS]; 
    int usb_serial_probe(struct usb_interfac 
    913914                } 
    914915                buffer_size = serial->type->bulk_in_size; 
    915916                if (!buffer_size) 
    916                         buffer_size = le16_to_cpu(endpoint->wMaxPacketSize); 
     917                        buffer_size = (endpoint->wMaxPacketSize > maxSize) ? endpoint->wMaxPacketSize : maxSize; 
    917918                port->bulk_in_size = buffer_size; 
    918919                port->bulk_in_endpointAddress = endpoint->bEndpointAddress; 
    919920                port->bulk_in_buffer = kmalloc(buffer_size, GFP_KERNEL); 
    MODULE_LICENSE("GPL"); 
    13921393 
    13931394module_param(debug, bool, S_IRUGO | S_IWUSR); 
    13941395MODULE_PARM_DESC(debug, "Debug enabled or not"); 
     1396module_param(maxSize, ushort,0); 
     1397MODULE_PARM_DESC(maxSize,"User specified USB endpoint size"); 
Note: See TracBrowser for help on using the repository browser.