diff options
author | Colin Leitner <colin.leitner@googlemail.com> | 2013-11-05 21:02:34 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-12-03 09:52:57 +0400 |
commit | 8704211f65a2106ba01b6ac9727cdaf9ca11594c (patch) | |
tree | 54fbb0393b9bddcb348855a60c36649950fed952 /MAINTAINERS | |
parent | 78692cc3382e0603a47e1f2aaeffe0d99891994d (diff) | |
download | linux-8704211f65a2106ba01b6ac9727cdaf9ca11594c.tar.xz |
USB: ftdi_sio: fixed handling of unsupported CSIZE setting
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>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'MAINTAINERS')
0 files changed, 0 insertions, 0 deletions