From: Alan Cox Date: Mon, 19 Nov 2007 15:12:22 +0000 (+0000) Subject: [SERIAL] 21285: Report baud rate back via termios X-Git-Tag: v2.6.25-rc1~1175^2~2^7~6 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5f333831fe2ff1656f954aabdb3eb8c276169cc;p=linux-2.6 [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 Signed-off-by: Russell King --- diff --git a/drivers/serial/21285.c b/drivers/serial/21285.c index facb678556..6a48dfa1ef 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? */