summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Cox <alan@lxorguk.ukuu.org.uk>2007-11-19 16:12:22 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-01-26 15:50:01 +0100
commitc5f333831fe2ff1656f954aabdb3eb8c276169cc (patch)
tree92462c0cf9e10743a53858ce765917f3da6f068b
parent[ARM] Remove pointless casts from void pointers, (diff)
downloadlinux-c5f333831fe2ff1656f954aabdb3eb8c276169cc.tar.xz
linux-c5f333831fe2ff1656f954aabdb3eb8c276169cc.zip
[SERIAL] 21285: Report baud rate back via termios
Currently reports back the requested rate not the result of the divides but thats an easy fix for someone with h/w Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r--drivers/serial/21285.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/serial/21285.c b/drivers/serial/21285.c
index facb67855619..6a48dfa1efe8 100644
--- a/drivers/serial/21285.c
+++ b/drivers/serial/21285.c
@@ -277,6 +277,8 @@ serial21285_set_termios(struct uart_port *port, struct ktermios *termios,
if (termios->c_iflag & INPCK)
port->read_status_mask |= RXSTAT_FRAME | RXSTAT_PARITY;
+ tty_encode_baud_rate(tty, baud, baud);
+
/*
* Which character status flags should we ignore?
*/