]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] Fix console output getting dropped on platforms without udbg_putc
authorMilton Miller <miltonm@bga.com>
Sun, 10 Jun 2007 04:32:43 +0000 (14:32 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 14 Jun 2007 01:56:17 +0000 (11:56 +1000)
commitd30969fb491bd51edd2a5a15999c95866a642473
tree22f9a16bd62bd5f0041673dfa0abbfd695a0144a
parenteccc8ebb1a818523a0ecdab211941a10711dad0f
[POWERPC] Fix console output getting dropped on platforms without udbg_putc

Previously, registering this early console would just result
in dropping early buffered printk output until a udbg_putc
was registered.

However, commit 3804c260694314db440e50fc8ee32fb720b3cea6
clears the CON_PRINTBUFFER flag on the main console when a
CON_BOOT (early) console has been registered, resulting in
the buffered messages never being displayed to the user.

This fixes the problem by making sure we don't register udbg_console
on platforms that don't implement udbg_putc.

Signed-off-by: Milton Miller <miltonm@bga.com>
Acked-by: Mark A. Greer <mgreer@mvista.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/udbg.c