source: trunk/target/linux/generic-2.4/patches/801-usb_serial_endpoint_size.patch @ 8573

Last change on this file since 8573 was 8573, checked in by nico, 9 years ago

add high-speed usb serial fix from Junxion to 2.4 kernel too (closes: #2274)

File size: 1.0 KB
  • drivers/usb/serial/usbserial.c

    old new  
    331331#ifdef CONFIG_USB_SERIAL_GENERIC 
    332332static __u16    vendor  = 0x05f9; 
    333333static __u16    product = 0xffff; 
     334static int      maxSize = 0; 
    334335 
    335336static struct usb_device_id generic_device_ids[9]; /* Initially all zeroes. */ 
    336337 
     
    15571558                        err("No free urbs available"); 
    15581559                        goto probe_error; 
    15591560                } 
     1561#ifdef CONFIG_USB_SERIAL_GENERIC 
     1562                buffer_size = (endpoint->wMaxPacketSize > maxSize) ? endpoint->wMaxPacketSize : maxSize; 
     1563#else 
    15601564                buffer_size = endpoint->wMaxPacketSize; 
     1565#endif 
    15611566                port->bulk_in_endpointAddress = endpoint->bEndpointAddress; 
    15621567                port->bulk_in_buffer = kmalloc (buffer_size, GFP_KERNEL); 
    15631568                if (!port->bulk_in_buffer) { 
     
    19451950 
    19461951MODULE_PARM(product, "h"); 
    19471952MODULE_PARM_DESC(product, "User specified USB idProduct"); 
     1953 
     1954MODULE_PARM(maxSize,"i"); 
     1955MODULE_PARM_DESC(maxSize,"User specified USB endpoint size"); 
    19481956#endif 
Note: See TracBrowser for help on using the repository browser.