r4079 - trunk/src/host/qemu-neo1973/hw

andrew at sita.openmoko.org andrew at sita.openmoko.org
Sat Feb 16 15:59:21 CET 2008


Author: andrew
Date: 2008-02-16 15:59:19 +0100 (Sat, 16 Feb 2008)
New Revision: 4079

Modified:
   trunk/src/host/qemu-neo1973/hw/s3c24xx_mmci.c
Log:
SDICMDCON's WithData bit is only valid for SDIO.


Modified: trunk/src/host/qemu-neo1973/hw/s3c24xx_mmci.c
===================================================================
--- trunk/src/host/qemu-neo1973/hw/s3c24xx_mmci.c	2008-02-16 13:02:16 UTC (rev 4078)
+++ trunk/src/host/qemu-neo1973/hw/s3c24xx_mmci.c	2008-02-16 14:59:19 UTC (rev 4079)
@@ -180,7 +180,11 @@
     } else if (((s->dcontrol >> 12) & 3) == 3)			/* DatMode */
         if (s->dcontrol & (1 << 20))				/* RACMD */
             s->data = 1;
-    s->data &= s->ccontrol >> 11;				/* WithData */
+    /* HACK:  This bit only matters for SDIO but we don't have a good
+     * way to tell if the card is an SDIO, so only check if this is
+     * CMD53, the only SDIO command potentially using the DAT lines.  */
+    if (request.cmd == 53)
+        s->data &= s->ccontrol >> 11;				/* WithData */
     return;
 
 timeout:





More information about the commitlog mailing list