mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-07 15:01:44 +00:00
[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>
This commit is contained in:
parent
2a7057e306
commit
c5f333831f
1 changed files with 2 additions and 0 deletions
|
@ -277,6 +277,8 @@ serial21285_set_termios(struct uart_port *port, struct ktermios *termios,
|
||||||
if (termios->c_iflag & INPCK)
|
if (termios->c_iflag & INPCK)
|
||||||
port->read_status_mask |= RXSTAT_FRAME | RXSTAT_PARITY;
|
port->read_status_mask |= RXSTAT_FRAME | RXSTAT_PARITY;
|
||||||
|
|
||||||
|
tty_encode_baud_rate(tty, baud, baud);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Which character status flags should we ignore?
|
* Which character status flags should we ignore?
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue