]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00220884 uart: quit the early uart console as late as possible
authorHuang Shijie <b32955@freescale.com>
Tue, 21 Aug 2012 08:21:41 +0000 (16:21 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:12:46 +0000 (14:12 +0200)
If we use the late_initcall(), then there is a time slot between
the exit of early uart console and the real console:

      -->late_initcall(mxc_early_uart_console_disable)
......
      -->imx_startup()

In this time slot, the clock will be closed, so the log printed during
the time slot is buffered, this is why we can not see the NFS's log.

Change the late_initcall() to late_initcall_sync() which eliminates the
time slot.

Signed-off-by: Huang Shijie <b32955@freescale.com>
drivers/tty/serial/mxc_uart_early.c

index 4a4518fa67e1f827b9eb4228d7e077047175714c..ffa3660b6b1edadce2528f9eee5f8b5226c6f963 100644 (file)
@@ -188,4 +188,4 @@ int __init mxc_early_uart_console_disable(void)
        }
        return 0;
 }
-late_initcall(mxc_early_uart_console_disable);
+late_initcall_sync(mxc_early_uart_console_disable);