Skip to content

Commit

Permalink
[SERIAL] 21285: Report baud rate back via termios
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alan Cox authored and Russell King committed Jan 26, 2008
1 parent 2a7057e commit c5f3338
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/serial/21285.c
Original file line number Diff line number Diff line change
Expand Up @@ -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?
*/
Expand Down

0 comments on commit c5f3338

Please sign in to comment.