usb-console: pass baud from console to the initial tty open
authorJason Wessel <jason.wessel@windriver.com>
Tue, 16 Mar 2010 21:05:44 +0000 (16:05 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 20 May 2010 20:21:32 +0000 (13:21 -0700)
commit92d2c5e4badc622999d3b17e6dfbf6babacb52f6
tree2274b66563bf061359c0a7993cc5163c3c308e11
parentaae86e8adb3bbf5256eebe76500cf7254365753c
usb-console: pass baud from console to the initial tty open

The usb console code has had a long standing problem of not being able
to pass the baud rate from the kernel argument console=ttyUSB0,BAUD
down to the initial tty open, unless you were willing to settle for
9600 baud.

The solution is to directly use tty_init_termios() in
usb_console_setup() as this will preserve any changes to the initial
termios setting on future opens.

CC: Alan Cox <alan@linux.intel.com>
CC: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/console.c