瀏覽代碼

[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>
Alan Cox 17 年之前
父節點
當前提交
c5f333831f
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      drivers/serial/21285.c

+ 2 - 0
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?
 	 */