From: Sonic Zhang Date: Wed, 27 Oct 2010 08:16:49 +0000 (-0400) Subject: serial: bfin_5xx: disable CON_PRINTBUFFER for consoles X-Git-Tag: v3.0~2828^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6d9e44986891345636e2d6069c4ae1612b2337d4;p=platform%2Fkernel%2Flinux-amlogic.git serial: bfin_5xx: disable CON_PRINTBUFFER for consoles If we are using early serial, don't let the normal console rewind the log buffer, since that causes things to be printed multiple times. Signed-off-by: Sonic Zhang Signed-off-by: Mike Frysinger Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/serial/bfin_5xx.c b/drivers/serial/bfin_5xx.c index a454e42..9655321 100644 --- a/drivers/serial/bfin_5xx.c +++ b/drivers/serial/bfin_5xx.c @@ -1324,6 +1324,14 @@ struct console __init *bfin_earlyserial_init(unsigned int port, struct bfin_serial_port *uart; struct ktermios t; +#ifdef CONFIG_SERIAL_BFIN_CONSOLE + /* + * If we are using early serial, don't let the normal console rewind + * log buffer, since that causes things to be printed multiple times + */ + bfin_serial_console.flags &= ~CON_PRINTBUFFER; +#endif + if (port == -1 || port >= nr_active_ports) port = 0; bfin_serial_init_ports();