[ar71xx] fix GPIO function select bit definitions (based on a patch by Jonas <jmajau...
[openwrt.git] / target / linux / s3c24xx / patches-2.6.26 / 1059-gta01-dehang-printk.patch.patch
1 From 2e7d18a213b94e4aeded7f35b7cd0d02b9b661cd Mon Sep 17 00:00:00 2001
2 From: mokopatches <mokopatches@openmoko.org>
3 Date: Fri, 25 Jul 2008 23:04:37 +0100
4 Subject: [PATCH] gta01-dehang-printk.patch
5 This is a temporary work-around Mike Westerhof for this bug:
6 http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=788
7
8 See also
9 http://lists.openmoko.org/pipermail/openmoko-kernel/2008-February/000804.html
10
11 (It's the 2nd option.)
12
13 We may settle on a different solution in the future, depending on
14 feedback from upstream.
15 ---
16 drivers/serial/s3c2410.c | 9 +++++++++
17 1 files changed, 9 insertions(+), 0 deletions(-)
18
19 diff --git a/drivers/serial/s3c2410.c b/drivers/serial/s3c2410.c
20 index 7117110..bd87c79 100644
21 --- a/drivers/serial/s3c2410.c
22 +++ b/drivers/serial/s3c2410.c
23 @@ -1720,9 +1720,18 @@ static void
24 s3c24xx_serial_console_putchar(struct uart_port *port, int ch)
25 {
26 unsigned int ufcon = rd_regl(cons_uart, S3C2410_UFCON);
27 + unsigned int umcon = rd_regl(cons_uart, S3C2410_UMCON);
28 +
29 + /* If auto HW flow control enabled, temporarily turn it off */
30 + if (umcon & S3C2410_UMCOM_AFC)
31 + wr_regl(port, S3C2410_UMCON, (umcon & !S3C2410_UMCOM_AFC));
32 +
33 while (!s3c24xx_serial_console_txrdy(port, ufcon))
34 barrier();
35 wr_regb(cons_uart, S3C2410_UTXH, ch);
36 +
37 + if (umcon & S3C2410_UMCOM_AFC)
38 + wr_regl(port, S3C2410_UMCON, umcon);
39 }
40
41 static void
42 --
43 1.5.6.3
44
This page took 0.044268 seconds and 5 git commands to generate.