From 96ea801b4ac0cff72fdae3ca9451a631b4c18531 Mon Sep 17 00:00:00 2001 From: Huang Shijie Date: Tue, 21 Aug 2012 16:21:41 +0800 Subject: ENGR00220884 uart: quit the early uart console as late as possible 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 --- drivers/tty/serial/mxc_uart_early.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers') diff --git a/drivers/tty/serial/mxc_uart_early.c b/drivers/tty/serial/mxc_uart_early.c index 4a4518fa67e1..ffa3660b6b1e 100644 --- a/drivers/tty/serial/mxc_uart_early.c +++ b/drivers/tty/serial/mxc_uart_early.c @@ -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); -- cgit v1.2.3