SERIAL: Lantiq: Set timeout in uart_port

Without this patch apps using readline hang.

Signed-off-by: Thomas Langer <thomas.langer@lantiq.com>
Signed-off-by: John Crispin <blogic@openwrt.org>
Cc: linux-mips@linux-mips.org
Cc: linux-serial@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/2687/
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
John Crispin 2011-08-03 13:37:24 +01:00 committed by Ralf Baechle
parent 0596954681
commit b7867f1bfc
1 changed files with 3 additions and 1 deletions

View File

@ -480,6 +480,8 @@ lqasc_set_termios(struct uart_port *port,
/* Don't rewrite B0 */ /* Don't rewrite B0 */
if (tty_termios_baud_rate(new)) if (tty_termios_baud_rate(new))
tty_termios_encode_baud_rate(new, baud, baud); tty_termios_encode_baud_rate(new, baud, baud);
uart_update_timeout(port, cflag, baud);
} }
static const char* static const char*