Skip to contentSkip to conversation

mmc: fsl_esdhc: set Abort command type for CMD12

PATCH New Yangbo Lu 2 participants 2 messages Jan 21, 2016 – Jan 27, 2016 MMC, SD and SDIO

lore
Share & tools
lore

Yangbo Lu

author
#0 lore raw

PATCH v3 1/1 mmc: fsl_esdhc: set Abort command type for CMD12

According to SD spec, CMD12, CMD52 for writing I/O abort in CCCR need to be set an Abort command type when they are sent. So, we remove all chip-specific #ifdefs and make it available for all platforms.

---
Changes for v2:
- Removed fix for T4160 because other patch had done that
Changes for v3:
- Removed all #ifdefs

---
 drivers/mmc/fsl_esdhc.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/mmc/fsl_esdhc.c +1 -4
index c5054d6..f78dcc2 100644
@@ -105,12 +105,9 @@ static uint esdhc_xfertyp(struct mmc_cmd *cmd, struct mmc_data *data)
 	else if (cmd->resp_type & MMC_RSP_PRESENT)
 		xfertyp |= XFERTYP_RSPTYP_48;
 
-#if defined(CONFIG_MX53) || defined(CONFIG_PPC_T4240) || \
-	defined(CONFIG_LS102XA) || defined(CONFIG_FSL_LAYERSCAPE) || \
-	defined(CONFIG_PPC_T4160)
 	if (cmd->cmdidx == MMC_CMD_STOP_TRANSMISSION)
 		xfertyp |= XFERTYP_CMDTYP_ABORT;
-#endif
+
 	return XFERTYP_CMD(cmd->cmdidx) | xfertyp;
 }
 
Signature · 1 line
2.1.0.27.g96db324
#1 lore raw

PATCH v3 1/1 mmc: fsl_esdhc: set Abort command type for CMD12

Quoted 5 lines · Yangbo Lu

According to SD spec, CMD12, CMD52 for writing I/O abort in CCCR need to be set an Abort command type when they are sent. So, we remove all chip-specific #ifdefs and make it available for all platforms.

Quoted 9 lines

---
Changes for v2:
- Removed fix for T4160 because other patch had done that
Changes for v3:
- Removed all #ifdefs

---
 drivers/mmc/fsl_esdhc.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

Applied to u-boot-fsl-qoriq master. Awaiting upstream.

Thanks.

York