21285: Report baud rate back via termios
PATCH 1/1 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
drivers/serial/21285.c +3 -0
@@ -277,6 +279,8 @@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? */
@@ -301,6 +305,7 @@ *CSR_UARTCON =1 ;spin_unlock_irqrestore (&port->lock, flags); + }static const char *serial21285_type (struct uart_port *port)
Quoted 4 lines · Alan Cox
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 <[email protected]>
Ack for first hunk. When can this be merged? I assume it has to wait for tty_encode_baud_rate() to appear in mainline?
Quoted 13 lines
diff -u --new-file --recursive --exclude-from
/usr/src/excludelinux.vanilla-2.6.24-rc2-mm1/drivers/serial/21285.c linux-2.6.24-rc2-mm1/drivers/serial/21285.cdrivers/serial/21285.c +2
-0@@ -277,6 +279,8 @@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? */
drivers/serial/21285.c line 311
Quoted 7 lines
drivers/serial/21285.c +1
-0@@ -301,6 +305,7 @@ *CSR_UARTCON =1 ;spin_unlock_irqrestore (&port->lock, flags); + }static const char *serial21285_type (struct uart_port *port)
This hunk isn't required.
Note also that no one reads [email protected].
Signature · 3 lines
Russell King Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of:
Quoted 8 lines · On Mon, 19 Nov 2007 15:41:37 +0000 Russell King <[email protected]>…
Quoted 4 lines · Alan Cox
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 <[email protected]>Ack for first hunk. When can this be merged? I assume it has to wait for
tty_encode_baud_rate()to appear in mainline?
tty_termios_encode_baud-rate/tty_encode_baud_rate are now in mainline
Quoted 7 lines · Alan Cox
Quoted 4 lines · On Mon, 19 Nov 2007 15:41:37 +0000 Russell King <[email protected]>…
Quoted 3 lines · Alan Cox
Currently reports back the requested rate not the result of the divides but thats an easy fix for someone with h/w
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
Signed-off-by Alan Cox <[email protected]>Ack for first hunk. When can this be merged? I assume it has to wait for
tty_encode_baud_rate()to appear in mainline?tty_termios_encode_baud-rate/tty_encode_baud_rate are now in mainline
Great, I'll queue it for the next merge minus the 2nd hunk.
Signature · 3 lines
Russell King Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: