From: Haijun.Zhang Date: Mon, 1 Jul 2013 06:26:01 +0000 (+0800) Subject: Powerpc: eSDHC: Fix mmc read write err in uboot of T4240QDS board X-Git-Tag: v2013.07~11^2~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b8e5b07225;p=u-boot Powerpc: eSDHC: Fix mmc read write err in uboot of T4240QDS board Fill the right command type when using CMD12 to stop data transfer. Signed-off-by: Haijun Zhang CC: Fleming Andrew-AFLEMING CC: Scott Wood Signed-off-by: Andy Fleming --- diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index 973b19f337..4e43e3eec9 100644 --- a/drivers/mmc/fsl_esdhc.c +++ b/drivers/mmc/fsl_esdhc.c @@ -100,7 +100,7 @@ static uint esdhc_xfertyp(struct mmc_cmd *cmd, struct mmc_data *data) else if (cmd->resp_type & MMC_RSP_PRESENT) xfertyp |= XFERTYP_RSPTYP_48; -#ifdef CONFIG_MX53 +#if defined(CONFIG_MX53) || defined(CONFIG_T4240QDS) if (cmd->cmdidx == MMC_CMD_STOP_TRANSMISSION) xfertyp |= XFERTYP_CMDTYP_ABORT; #endif