USB: ftdi_sio: fix initial baud rate
authorJohan Hovold <jhovold@gmail.com>
Wed, 18 Jan 2012 00:46:00 +0000 (01:46 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 24 Jan 2012 19:20:11 +0000 (11:20 -0800)
commit108e02b12921078a59dcacd048079ece48a4a983
tree4fa48e2d3dc67133757f6272135dbdfe7f050b94
parenteb833a9e0972f60beb4ab8104ad7ef6bf30f02fc
USB: ftdi_sio: fix initial baud rate

Fix regression introduced by commit b1ffb4c851f1 ("USB: Fix Corruption
issue in USB ftdi driver ftdi_sio.c") which caused the termios settings
to no longer be initialised at open. Consequently it was no longer
possible to set the port to the default speed of 9600 baud without first
changing to another baud rate and back again.

Reported-by: Roland Ramthun <mail@roland-ramthun.de>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Tested-by: Roland Ramthun <mail@roland-ramthun.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/ftdi_sio.c