[U-Boot,V2] powerpc/esdhc: Correct judgement for DATA PIO mode

Message ID 1367977858-24071-1-git-send-email-Haijun.Zhang@freescale.com
State Accepted, archived
Delegated to: Andy Fleming
Headers show

Commit Message

Haijun.Zhang May 8, 2013, 1:50 a.m.
From: "Haijun.Zhang" <Haijun.Zhang@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@freescale.com>
CC: Sun Yusong-R58495 <yorksun@freescale.com>
changes for v2:
	- Update the macro changes.

 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..6d38bfb 100644
--- a/drivers/mmc/fsl_esdhc.c
+++ b/drivers/mmc/fsl_esdhc.c
@@ -178,7 +178,7 @@  static int esdhc_setup_data(struct mmc *mmc, struct mmc_data *data)
 	int timeout;
 	struct fsl_esdhc_cfg *cfg = (struct fsl_esdhc_cfg *)mmc->priv;
 	struct fsl_esdhc *regs = (struct fsl_esdhc *)cfg->esdhc_base;
 	uint wml_value;
 	wml_value = data->blocksize/4;