]> www.infradead.org Git - users/jedix/linux-maple.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)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Thu, 8 Dec 2011 19:19:19 +0000 (11:19 -0800)
commitdcb8c1c8ef907e3f7c8a05e2c9d3a4b534580f09
tree190e263fc2eb784ca4fdb73ab01a812699fd7abc
parent38ad4850b04d1b540a5eb697d1946131f73b827f
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>
drivers/usb/serial/ftdi_sio.c