* [PATCH 3/3] MIPS: lantiq: set timeout in uart_port
[not found] <1311019453-21277-1-git-send-email-blogic@openwrt.org>
@ 2011-07-18 20:04 ` John Crispin
0 siblings, 0 replies; only message in thread
From: John Crispin @ 2011-07-18 20:04 UTC (permalink / raw)
To: Ralf Baechle; +Cc: John Crispin, Thomas Langer, linux-mips, linux-serial
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
---
drivers/tty/serial/lantiq.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/drivers/tty/serial/lantiq.c b/drivers/tty/serial/lantiq.c
index 58cf279..bc95f52 100644
--- a/drivers/tty/serial/lantiq.c
+++ b/drivers/tty/serial/lantiq.c
@@ -478,8 +478,10 @@ lqasc_set_termios(struct uart_port *port,
spin_unlock_irqrestore(<q_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*
--
1.7.2.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-07-18 20:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1311019453-21277-1-git-send-email-blogic@openwrt.org>
2011-07-18 20:04 ` [PATCH 3/3] MIPS: lantiq: set timeout in uart_port John Crispin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).