diff options
author | Johan Hovold <jhovold@gmail.com> | 2014-03-12 19:09:38 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <greg@kroah.com> | 2014-03-12 12:44:49 -0700 |
commit | 5083fd7bdfe6760577235a724cf6dccae13652c2 (patch) | |
tree | dacbaeeebe30e17afab70cbb344305e212a77ba0 /include/linux/usb/serial.h | |
parent | d7c933ae7da0d0b112bfc7e86424d780aaeb2d2c (diff) | |
download | linux-5083fd7bdfe6760577235a724cf6dccae13652c2.tar.gz linux-5083fd7bdfe6760577235a724cf6dccae13652c2.tar.bz2 linux-5083fd7bdfe6760577235a724cf6dccae13652c2.zip |
USB: serial: make bulk_out_size a lower limit
Drivers are allowed to override the default bulk-out buffer size
(endpoint maximum packet size) in order to increase throughput, but it
does not make much sense to allow buffers smaller than the default.
Note that this is already how bulk_in_size is defined.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Diffstat (limited to 'include/linux/usb/serial.h')
-rw-r--r-- | include/linux/usb/serial.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/usb/serial.h b/include/linux/usb/serial.h index 704a1ab8240c..9bb547c7bce7 100644 --- a/include/linux/usb/serial.h +++ b/include/linux/usb/serial.h @@ -190,7 +190,8 @@ static inline void usb_set_serial_data(struct usb_serial *serial, void *data) * @num_ports: the number of different ports this device will have. * @bulk_in_size: minimum number of bytes to allocate for bulk-in buffer * (0 = end-point size) - * @bulk_out_size: bytes to allocate for bulk-out buffer (0 = end-point size) + * @bulk_out_size: minimum number of bytes to allocate for bulk-out buffer + * (0 = end-point size) * @calc_num_ports: pointer to a function to determine how many ports this * device has dynamically. It will be called after the probe() * callback is called, but before attach() |