1
0
Fork 0

tty: serial: fsl_lpuart: add magic SysRq support

Add magic SysRq key support.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
5.4-rM2-2.2.x-imx-squashed
Fugang Duan 2019-01-28 10:27:27 +08:00 committed by Dong Aisheng
parent 89d0add021
commit f285ec299e
1 changed files with 6 additions and 1 deletions

View File

@ -919,7 +919,12 @@ static void lpuart32_rxint(struct lpuart_port *sport)
*/
sr = lpuart32_read(&sport->port, UARTSTAT);
rx = lpuart32_read(&sport->port, UARTDATA);
rx &= 0x3ff;
if ((sr & UARTSTAT_FE) && (rx & UARTDATA_FRETSC) &&
!(rx & UARTDATA_MASK)) {
if (uart_handle_break(&sport->port))
continue;
}
if (uart_handle_sysrq_char(&sport->port, (unsigned char)rx))
continue;