r4046 - branches/src/target/kernel/2.6.24.x/patches

werner at sita.openmoko.org werner at sita.openmoko.org
Mon Feb 11 04:06:43 CET 2008


Author: werner
Date: 2008-02-11 04:06:39 +0100 (Mon, 11 Feb 2008)
New Revision: 4046

Added:
   branches/src/target/kernel/2.6.24.x/patches/gta01-dehang-printk.patch
Modified:
   branches/src/target/kernel/2.6.24.x/patches/series
Log:
This is a temporary work-around Mike Westerhof for this bug:
http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=788

See also
http://lists.openmoko.org/pipermail/openmoko-kernel/2008-February/000804.html

gta01-dehang-printk.patch:
- drivers/serial/s3c2410.c (s3c24xx_serial_console_putchar): disable flow
  control while trying to printk



Added: branches/src/target/kernel/2.6.24.x/patches/gta01-dehang-printk.patch
===================================================================
--- branches/src/target/kernel/2.6.24.x/patches/gta01-dehang-printk.patch	2008-02-11 00:20:15 UTC (rev 4045)
+++ branches/src/target/kernel/2.6.24.x/patches/gta01-dehang-printk.patch	2008-02-11 03:06:39 UTC (rev 4046)
@@ -0,0 +1,34 @@
+This is a temporary work-around Mike Westerhof for this bug:
+http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=788
+
+See also
+http://lists.openmoko.org/pipermail/openmoko-kernel/2008-February/000804.html
+
+(It's the 2nd option.)
+
+We may settle on a different solution in the future, depending on
+feedback from upstream.
+
+Index: linux-2.6.24/drivers/serial/s3c2410.c
+===================================================================
+--- linux-2.6.24.orig/drivers/serial/s3c2410.c
++++ linux-2.6.24/drivers/serial/s3c2410.c
+@@ -1717,9 +1717,18 @@
+ s3c24xx_serial_console_putchar(struct uart_port *port, int ch)
+ {
+ 	unsigned int ufcon = rd_regl(cons_uart, S3C2410_UFCON);
++	unsigned int umcon = rd_regl(cons_uart, S3C2410_UMCON);
++
++	/* If auto HW flow control enabled, temporarily turn it off */
++	if (umcon & S3C2410_UMCOM_AFC)
++		wr_regl(port, S3C2410_UMCON, (umcon & !S3C2410_UMCOM_AFC));
++
+ 	while (!s3c24xx_serial_console_txrdy(port, ufcon))
+ 		barrier();
+ 	wr_regb(cons_uart, S3C2410_UTXH, ch);
++
++	if (umcon & S3C2410_UMCOM_AFC)
++		wr_regl(port, S3C2410_UMCON, umcon);
+ }
+ 
+ static void

Modified: branches/src/target/kernel/2.6.24.x/patches/series
===================================================================
--- branches/src/target/kernel/2.6.24.x/patches/series	2008-02-11 00:20:15 UTC (rev 4045)
+++ branches/src/target/kernel/2.6.24.x/patches/series	2008-02-11 03:06:39 UTC (rev 4046)
@@ -97,6 +97,9 @@
 # this may not be the last word on this issue, but the patch certainly helps
 fix-pcf50633-LOWBAT-kill-init.patch
 
+# temporary work-around. awaiting decision on correct fix from upstream.
+gta01-dehang-printk.patch
+
 # leapfrogged from upstream
 kexec-atags.patch
 





More information about the commitlog mailing list