1 --- a/drivers/serial/samsung.c
2 +++ b/drivers/serial/samsung.c
3 @@ -1263,6 +1263,13 @@ module_exit(s3c24xx_serial_modexit);
4 #ifdef CONFIG_SERIAL_SAMSUNG_CONSOLE
6 static struct uart_port *cons_uart;
7 +static int cons_silenced;
9 +void s3c24xx_serial_console_set_silence(int silenced)
11 + cons_silenced = silenced;
13 +EXPORT_SYMBOL(s3c24xx_serial_console_set_silence);
16 s3c24xx_serial_console_txrdy(struct uart_port *port, unsigned int ufcon)
17 @@ -1287,9 +1294,21 @@ static void
18 s3c24xx_serial_console_putchar(struct uart_port *port, int ch)
20 unsigned int ufcon = rd_regl(cons_uart, S3C2410_UFCON);
21 + unsigned int umcon = rd_regl(cons_uart, S3C2410_UMCON);
26 + /* If auto HW flow control enabled, temporarily turn it off */
27 + if (umcon & S3C2410_UMCOM_AFC)
28 + wr_regl(port, S3C2410_UMCON, (umcon & !S3C2410_UMCOM_AFC));
30 while (!s3c24xx_serial_console_txrdy(port, ufcon))
32 wr_regb(cons_uart, S3C2410_UTXH, ch);
34 + if (umcon & S3C2410_UMCOM_AFC)
35 + wr_regl(port, S3C2410_UMCON, umcon);