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)
commitbbcb2b907415a90334521a31a8767cd77462c716
tree8ee895f4ee3352a7f57c52c5e99119bc6838edac
parent317149c655defedfaf432143b86a720cfc12a424
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