Patch to not set reserved bits in i.MX25 PROCTL register.  DMA stops working if 
those bits get set.

Signed-off-by: Wilson Callan <wilson.callan at savantsystems.com>
Acked-by: Sascha Hauer <s.ha...@pengutronix.de>

--- linux-3.4.4/drivers/mmc/host/sdhci-esdhc-imx.c.orig 2012-07-04 
13:58:16.239979741 -0400
+++ linux-3.4.4/drivers/mmc/host/sdhci-esdhc-imx.c      2012-07-04 
14:34:38.939949292 -0400
@@ -310,8 +310,10 @@ static void esdhc_writeb_le(struct sdhci
                                SDHCI_CTRL_D3CD);
                /* ensure the endianess */
                new_val |= ESDHC_HOST_CONTROL_LE;
-               /* DMA mode bits are shifted */
-               new_val |= (val & SDHCI_CTRL_DMA_MASK) << 5;
+               if (!is_imx25_esdhc(imx_data)) { // bits 8&9 are reserved on 
mx25
+                       /* DMA mode bits are shifted */
+                       new_val |= (val & SDHCI_CTRL_DMA_MASK) << 5;
+               }
 
                esdhc_clrset_le(host, 0xffff, new_val, reg);
                return;

--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to