USB: ftdi_sio: fix initial baud rate
commitb26a274f999b4d5eeef50fcc5bf4c07b34964587
authorJohan Hovold <jhovold@gmail.com>
Wed, 18 Jan 2012 00:46:00 +0000 (18 01:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Feb 2012 17:21:57 +0000 (3 09:21 -0800)
tree8b0b1a4d3a9b92dec0a1719e01563e8cc5bba618
parent3393e255e6e0120b1f88d666c1b36b165f97467c
USB: ftdi_sio: fix initial baud rate

commit 108e02b12921078a59dcacd048079ece48a4a983 upstream.

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>
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Tested-by: Roland Ramthun <mail@roland-ramthun.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/ftdi_sio.c