hsu: do not stop log when system not hang
authorLi, Ning <ning.li@intel.com>
Mon, 23 Apr 2012 11:31:34 +0000 (19:31 +0800)
committerbuildbot <buildbot@intel.com>
Wed, 25 Apr 2012 09:41:34 +0000 (02:41 -0700)
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 <ning.li@intel.com>
Reviewed-on: http://android.intel.com:8080/44418
Reviewed-by: Zhang, Shijie <shijie.zhang@intel.com>
Reviewed-by: Berthier, Emmanuel <emmanuel.berthier@intel.com>
Reviewed-by: Chen, Jie D <jie.d.chen@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Reviewed-by: Yang, Bin <bin.yang@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/tty/serial/mfd.c

index 1b96fd8..f619469 100644 (file)
@@ -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);