]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
USB: Fix Corruption issue in USB ftdi driver ftdi_sio.c
authorAndrew Worsley <amworsley@gmail.com>
Fri, 18 Nov 2011 12:13:33 +0000 (23:13 +1100)
committerWilly Tarreau <w@1wt.eu>
Sat, 11 Feb 2012 14:37:58 +0000 (15:37 +0100)
commit68a59259b9e3c467a65caa7ef1d0dad465de1015
tree78b050ca1c4a825cfa2ab3141bbdb6b4a4554242
parent9f5e4da29bd67249fa708af443f9bbcb2328311b
USB: Fix Corruption issue in USB ftdi driver ftdi_sio.c

commit b1ffb4c851f185e9051ba837c16d9b84ef688d26 upstream.

Fix for ftdi_set_termios() glitching output

ftdi_set_termios() is constantly setting the baud rate, data bits and parity
unnecessarily on every call, . When called while characters are being
transmitted can cause the FTDI chip to corrupt the serial port bit stream
output by stalling the output half a bit during the output of a character.
Simple fix by skipping this setting if the baud rate/data bits/parity are
unchanged.

Signed-off-by: Andrew Worsley <amworsley@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/usb/serial/ftdi_sio.c