USB: Fix Corruption issue in USB ftdi driver ftdi_sio.c
commit552f6bf1bb0eda0011c0525dd587aa9e7ba5b846
authorAndrew Worsley <amworsley@gmail.com>
Fri, 18 Nov 2011 12:13:33 +0000 (18 23:13 +1100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 26 Nov 2011 17:10:37 +0000 (26 09:10 -0800)
tree095653dd80d0ab356d8c8a226386f6fbe30108f6
parent4ea27e18d645d3706675bb4d49330ffe867dd487
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