]> git.baikalelectronics.ru Git - kernel.git/commit
USB: serial: allow drivers to define bulk buffer sizes
authorJohan Hovold <jhovold@gmail.com>
Wed, 17 Mar 2010 22:00:37 +0000 (23:00 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 20 May 2010 20:21:33 +0000 (13:21 -0700)
commit114342c5194f102c505ca87908a4c98d0fecf72d
tree8ee895f4ee3352a7f57c52c5e99119bc6838edac
parent1980179e65b595e123e27fa45f2df5e8bc9d75ed
USB: serial: allow drivers to define bulk buffer sizes

Allow drivers to define custom bulk in/out buffer sizes in struct
usb_serial_driver. If not set, fall back to the default buffer size
which matches the endpoint size.

Three drivers are currently freeing the pre-allocated buffers and
allocating larger ones to achieve this at port probe (ftdi_sio) or even
at port open (ipaq and iuu_phoenix), which needless to say is suboptimal.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/ftdi_sio.c
drivers/usb/serial/ipaq.c
drivers/usb/serial/iuu_phoenix.c
drivers/usb/serial/usb-serial.c
include/linux/usb/serial.h