projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ace65b0
)
MLK-13710 tty: serial: fsl_lpuart: add magic SysRq support
author
Andy Duan
<fugang.duan@nxp.com>
Wed, 28 Dec 2016 08:48:02 +0000
(16:48 +0800)
committer
Nitin Garg
<nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:58:16 +0000
(14:58 -0500)
Add magic SysRq key support.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
drivers/tty/serial/fsl_lpuart.c
patch
|
blob
|
history
diff --git
a/drivers/tty/serial/fsl_lpuart.c
b/drivers/tty/serial/fsl_lpuart.c
index
88c2b71
..
c024eb3
100644
(file)
--- a/
drivers/tty/serial/fsl_lpuart.c
+++ b/
drivers/tty/serial/fsl_lpuart.c
@@
-651,8
+651,14
@@
static irqreturn_t lpuart32_rxint(int irq, void *dev_id)
*/
sr = lpuart32_read(sport->port.membase + UARTSTAT);
rx = lpuart32_read(sport->port.membase + UARTDATA);
- rx &= 0x3ff;
+ if ((sr & UARTSTAT_FE) && (rx & UARTDATA_FRETSC) &&
+ !(rx & UARTDATA_MASK)) {
+ if (uart_handle_break(&sport->port))
+ continue;
+ }
+
+ rx &= UARTDATA_MASK;
if (uart_handle_sysrq_char(&sport->port, (unsigned char)rx))
continue;