[U-Boot] [PATCH] Powerpc/esdhc: Correct judgement for DATA PIO mode

Haijun.Zhang Haijun.Zhang at freescale.com
Mon May 6 08:23:37 CEST 2013


From: "Haijun.Zhang" <Haijun.Zhang at freescale.com>

The logic for the whether to configure for polling or DMA
was mistakenly reversed in this patch:

Commit 7b43db92110ec2f15c5f7187a165f2928464966b
drivers/mmc/fsl_esdhc.c: fix compiler warnings

Signed-off-by: Haijun Zhang <Haijun.Zhang at freescale.com>
CC: Sun Yusong-R58495 <yorksun at freescale.com>
CC: Fleming Andrew-AFLEMING <AFLEMING at freescale.com>
---
 drivers/mmc/fsl_esdhc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c
index e93e38a..8feb3d3 100644
--- a/drivers/mmc/fsl_esdhc.c
+++ b/drivers/mmc/fsl_esdhc.c
@@ -74,7 +74,7 @@ static uint esdhc_xfertyp(struct mmc_cmd *cmd, struct mmc_data *data)
 
 	if (data) {
 		xfertyp |= XFERTYP_DPSEL;
-#ifndef CONFIG_SYS_FSL_ESDHC_USE_PIO
+#ifdef CONFIG_SYS_FSL_ESDHC_USE_PIO
 		xfertyp |= XFERTYP_DMAEN;
 #endif
 		if (data->blocks > 1) {
-- 
1.8.0




More information about the U-Boot mailing list