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

laforge at sita.openmoko.org laforge at sita.openmoko.org
Sun Feb 17 11:50:36 CET 2008


Author: laforge
Date: 2008-02-17 11:50:35 +0100 (Sun, 17 Feb 2008)
New Revision: 4082

Modified:
   branches/src/target/kernel/2.6.24.x/patches/s3c_mci.patch
Log:

s3cmci unaligned write fix (Mike Wester)


Modified: branches/src/target/kernel/2.6.24.x/patches/s3c_mci.patch
===================================================================
--- branches/src/target/kernel/2.6.24.x/patches/s3c_mci.patch	2008-02-16 15:36:40 UTC (rev 4081)
+++ branches/src/target/kernel/2.6.24.x/patches/s3c_mci.patch	2008-02-17 10:50:35 UTC (rev 4082)
@@ -343,7 +343,7 @@
 +		host->pio_count += fifo;
 +
 +		/* we might have an unaligned start of data */
-+		while ((unsigned long)host->pio_ptr & 0x03)
++		while (((unsigned long)host->pio_ptr & 0x03) && fifo--)
 +			*(host->pio_ptr++) = readb(host->base + host->sdidata_b);
 +
 +		/* and a major chunk of data in the middle */





More information about the commitlog mailing list