summaryrefslogtreecommitdiffstats
path: root/include/linux/usb
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2015-02-15 11:57:53 +0700
committerLuis Henriques <luis.henriques@canonical.com>2015-03-18 14:42:06 +0000
commit4655284815746802eeb3602e5873dbc3fc40cde5 (patch)
treeb5c972d2f50702c62e8fc004a8c76446be5d54b8 /include/linux/usb
parent28e78736f72abaeeb40ae1831e430552f35c0f69 (diff)
downloadlinux-stable-4655284815746802eeb3602e5873dbc3fc40cde5.tar.gz
linux-stable-4655284815746802eeb3602e5873dbc3fc40cde5.tar.bz2
linux-stable-4655284815746802eeb3602e5873dbc3fc40cde5.zip
Revert "USB: serial: make bulk_out_size a lower limit"
commit bc4b1f486fe69b86769e07c8edce472327a8462b upstream. This reverts commit 5083fd7bdfe6760577235a724cf6dccae13652c2. A bulk-out size smaller than the end-point size is indeed valid. The offending commit broke the usb-debug driver for EHCI debug devices, which use 8-byte buffers. Fixes: 5083fd7bdfe6 ("USB: serial: make bulk_out_size a lower limit") Reported-by: "Li, Elvin" <elvin.li@intel.com> Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
Diffstat (limited to 'include/linux/usb')
-rw-r--r--include/linux/usb/serial.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/usb/serial.h b/include/linux/usb/serial.h
index 9bb547c7bce7..704a1ab8240c 100644
--- a/include/linux/usb/serial.h
+++ b/include/linux/usb/serial.h
@@ -190,8 +190,7 @@ 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: minimum number of bytes to allocate for bulk-out buffer
- * (0 = end-point size)
+ * @bulk_out_size: 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()