[SERIAL] Fix AMBA PL011 sysrq character handling
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Tue, 27 Dec 2005 11:10:34 +0000 (11:10 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 27 Dec 2005 11:10:34 +0000 (11:10 +0000)
We only want the received character without the status bits for
sysrq handling.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/serial/amba-pl011.c

index 89d7bd3eaee39272c7ede6175ab4c26d478b7bac..d84476ee65923d85a4ce5043b162565324c6db79 100644 (file)
@@ -160,7 +160,7 @@ pl011_rx_chars(struct uart_amba_port *uap)
                                flag = TTY_FRAME;
                }
 
-               if (uart_handle_sysrq_char(&uap->port, ch, regs))
+               if (uart_handle_sysrq_char(&uap->port, ch & 255, regs))
                        goto ignore_char;
 
                uart_insert_char(&uap->port, ch, UART011_DR_OE, ch, flag);