]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb93018f65ee3d7515ea498e6fc36e85a42b64dbe
tree2274b66563bf061359c0a7993cc5163c3c308e11
parent3eb2facbe36f02d90aa5ba5e2e5c58d4091a41e7
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