serial: bfin_uart: Don't switch baud rate untill the transfer buffer is empty.
authorSonic Zhang <sonic.zhang@analog.com>
Mon, 19 Nov 2012 06:40:56 +0000 (14:40 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Nov 2012 23:43:26 +0000 (15:43 -0800)
commit1cd3f2d2c99892209c4751155ae56ff18b1b253e
treec4ee87525a902864fabf66f5ce3ec0d18756ebde
parent159a8e92fdf6967cb67e7639832f819fbc607242
serial: bfin_uart: Don't switch baud rate untill the transfer buffer is empty.

set_termios may be invoked before the former data transfer is completed.
Block until the tranfer is done.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/bfin_uart.c