From feeab59a4be24b497662629cb8616fddbf7ab502 Mon Sep 17 00:00:00 2001 From: "Li, Ning" Date: Mon, 23 Apr 2012 19:31:34 +0800 Subject: [PATCH] hsu: do not stop log when system not hang BZ: 30826 Console stops printing logs when oops_in_progress bit is set. If if it's set and it's not a bug causing system hangs, we still need to print logs after that. This patch is a fix under this situation. Change-Id: I4f9fb1552d8ad1425b2bae3f9c9fc47e0a874bf7 Signed-off-by: Li, Ning Reviewed-on: http://android.intel.com:8080/44418 Reviewed-by: Zhang, Shijie Reviewed-by: Berthier, Emmanuel Reviewed-by: Chen, Jie D Reviewed-by: Du, Alek Reviewed-by: Yang, Bin Tested-by: Wang, Zhifeng Reviewed-by: buildbot Tested-by: buildbot --- drivers/tty/serial/mfd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/tty/serial/mfd.c b/drivers/tty/serial/mfd.c index 1b96fd8..f619469 100644 --- a/drivers/tty/serial/mfd.c +++ b/drivers/tty/serial/mfd.c @@ -1462,6 +1462,8 @@ static void serial_hsu_console_putchar(struct uart_port *port, int ch) if (oops_in_progress && oops_char_len++ > 2048) return; + if (!oops_in_progress) + oops_char_len = 0; #endif wait_for_xmitr(up); serial_out(up, UART_TX, ch); -- 2.7.4