summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKishon Vijay Abraham I2017-07-21 06:04:35 -0500
committerKishon Vijay Abraham I2017-07-21 06:17:20 -0500
commitac6f8710634c24df24165131f4fac2f9b91b9ab4 (patch)
tree32ebc5e581e3b6a5c4056af6b6f86cc7e6e83d69
parent921edf312a6a20be16cf2b60e0dec3dce35e5cb9 (diff)
downloadlinux-phy-mmc.tar.gz
linux-phy-mmc.tar.xz
linux-phy-mmc.zip
mmc: host: omap_hsmmc: Add CMD23 capability to omap_hsmmc drivermmc
omap_hsmmc driver always relied on CMD12 to stop transmission. However if CMD12 is not issued at the correct timing, the card will indicate a out of range error. By Adding CMD23 capability, the MMC core will send MMC_SET_BLOCK_COUNT command before MMC_READ_MULTIPLE_BLOCK/MMC_WRITE_MULTIPLE_BLOCK commands. commit a04e6bae9e6f12 ("mmc: core: check also R1 response for stop commands") exposed this bug in omap_hsmmc driver. Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
-rw-r--r--drivers/mmc/host/omap_hsmmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c
index 7c12f3715676..c81f3b66a19b 100644
--- a/drivers/mmc/host/omap_hsmmc.c
+++ b/drivers/mmc/host/omap_hsmmc.c
@@ -2097,7 +2097,7 @@ static int omap_hsmmc_probe(struct platform_device *pdev)
2097 mmc->max_seg_size = mmc->max_req_size; 2097 mmc->max_seg_size = mmc->max_req_size;
2098 2098
2099 mmc->caps |= MMC_CAP_MMC_HIGHSPEED | MMC_CAP_SD_HIGHSPEED | 2099 mmc->caps |= MMC_CAP_MMC_HIGHSPEED | MMC_CAP_SD_HIGHSPEED |
2100 MMC_CAP_WAIT_WHILE_BUSY | MMC_CAP_ERASE; 2100 MMC_CAP_WAIT_WHILE_BUSY | MMC_CAP_ERASE | MMC_CAP_CMD23;
2101 2101
2102 mmc->caps |= mmc_pdata(host)->caps; 2102 mmc->caps |= mmc_pdata(host)->caps;
2103 if (mmc->caps & MMC_CAP_8_BIT_DATA) 2103 if (mmc->caps & MMC_CAP_8_BIT_DATA)