summaryrefslogtreecommitdiff
path: root/drivers/usb/serial/zio.c
diff options
context:
space:
mode:
authorColin Leitner <colin.leitner@googlemail.com>2013-11-05 18:02:34 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-11 22:36:28 -0800
commit536169b1c9a29a1931e07ec1115781be733e1a4c (patch)
treee8872f915b7c1a39ceb305e9fbf989cb09cd8090 /drivers/usb/serial/zio.c
parent98e0cc7766b1f11856e3975f82184f513051c4f5 (diff)
downloadlinux-3.10-536169b1c9a29a1931e07ec1115781be733e1a4c.tar.gz
linux-3.10-536169b1c9a29a1931e07ec1115781be733e1a4c.tar.bz2
linux-3.10-536169b1c9a29a1931e07ec1115781be733e1a4c.zip
USB: ftdi_sio: fixed handling of unsupported CSIZE setting
commit 8704211f65a2106ba01b6ac9727cdaf9ca11594c upstream. FTDI UARTs support only 7 or 8 data bits. Until now the ftdi_sio driver would only report this limitation for CS6 to dmesg and fail to reflect this fact to tcgetattr. This patch reverts the unsupported CSIZE setting and reports the fact with less severance to dmesg for both CS5 and CS6. To test the patch it's sufficient to call stty -F /dev/ttyUSB0 cs5 which will succeed without the patch and report an error with the patch applied. As an additional fix this patch ensures that the control request will always include a data bit size. Signed-off-by: Colin Leitner <colin.leitner@gmail.com> Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial/zio.c')
0 files changed, 0 insertions, 0 deletions