SERIAL: Lantiq: Set timeout in uart_port
authorJohn Crispin <blogic@openwrt.org>
Wed, 3 Aug 2011 12:37:24 +0000 (13:37 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 21 Sep 2011 15:53:25 +0000 (17:53 +0200)
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>
drivers/tty/serial/lantiq.c

index 58cf279ed87991a9ad6986c515aaad224165d56c..bc95f52cad8b6fa584d720597918c6311cf5ca26 100644 (file)
@@ -478,8 +478,10 @@ lqasc_set_termios(struct uart_port *port,
        spin_unlock_irqrestore(&ltq_asc_lock, flags);
 
        /* Don't rewrite B0 */
-        if (tty_termios_baud_rate(new))
+       if (tty_termios_baud_rate(new))
                tty_termios_encode_baud_rate(new, baud, baud);
+
+       uart_update_timeout(port, cflag, baud);
 }
 
 static const char*