]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
commit314a072e79ec163a0e633791b2692df255563ec3
treef192ac4921c0c9ee5f69f829cd926827f2c040ec
parent70d19e5ea1aab8ba3fd035fd7664b3c1a9a7a588
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 <b32955@freescale.com>
drivers/tty/serial/mxc_uart_early.c