]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
usb: fix pl2303 initialization
authorJason Wessel <jason.wessel@windriver.com>
Mon, 13 Oct 2008 09:35:51 +0000 (10:35 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 13 Oct 2008 16:51:39 +0000 (09:51 -0700)
commit4ad6de0b3f5d050b70e4c94a0cc8b26503f8cf28
treec8dc69cf828e0938bc186eeee799a16488624c71
parent9bde10a4b8c54804236d3d6b4b75e98825a921e7
usb: fix pl2303 initialization

This patch removes the private check for the termios_initialized for
the pl2303 usb driver.  It forced the baud to 9600 on the first call
to pl2303_set_termios()

Based on the tty changes in the 2.6.27 kernel, the termios passed to
the *_set_termios functions is always populated the first time.

This means there is no need to privately initialize the settings the
first time, and doing so will not allow the use of the kernel
parameter "console=ttyUSB0,115200" as an example.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/usb/serial/pl2303.c