1 diff -urNX /opt/Projects/openmoko-linux-2.6/orig/dontdiff /opt/Projects/openmoko-linux-2.6/orig/linux-2.6.29-rc3/drivers/serial/samsung.c /opt/Projects/openmoko-linux-2.6/drivers/serial/samsung.c
2 --- a/drivers/serial/samsung.c 2009-01-28 19:49:30.000000000 +0100
3 +++ b/drivers/serial/samsung.c 2009-05-16 13:25:47.000000000 +0200
5 #ifdef CONFIG_SERIAL_SAMSUNG_CONSOLE
7 static struct uart_port *cons_uart;
8 +static int cons_silenced;
10 +void s3c24xx_serial_console_set_silence(int silenced)
12 + cons_silenced = silenced;
14 +EXPORT_SYMBOL(s3c24xx_serial_console_set_silence);
17 s3c24xx_serial_console_txrdy(struct uart_port *port, unsigned int ufcon)
18 @@ -1232,9 +1386,21 @@
19 s3c24xx_serial_console_putchar(struct uart_port *port, int ch)
21 unsigned int ufcon = rd_regl(cons_uart, S3C2410_UFCON);
22 + unsigned int umcon = rd_regl(cons_uart, S3C2410_UMCON);
27 + /* If auto HW flow control enabled, temporarily turn it off */
28 + if (umcon & S3C2410_UMCOM_AFC)
29 + wr_regl(port, S3C2410_UMCON, (umcon & !S3C2410_UMCOM_AFC));
31 while (!s3c24xx_serial_console_txrdy(port, ufcon))
33 wr_regb(cons_uart, S3C2410_UTXH, ch);
35 + if (umcon & S3C2410_UMCOM_AFC)
36 + wr_regl(port, S3C2410_UMCON, umcon);