summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2016-06-21 16:12:49 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2016-07-25 11:34:24 +0300
commit549646a9c79d4649b41f9e817f0588ac0cc6a235 (patch)
tree62f1ba9f8c41a22bb24f7d04e0d4748c59d8f439
parent5b1c29bceea1ac2dccf5dcd9ae29a221082f1a7a (diff)
downloadlinux-549646a9c79d4649b41f9e817f0588ac0cc6a235.tar.xz
mmc: sh_mmcif: Inform the mmc core about the max busy timeout
The sh_mmcif driver is already using a 10s request timeout. Let's also inform the mmc core about this value, as there are situations when it needs to know about it. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r--drivers/mmc/host/sh_mmcif.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mmc/host/sh_mmcif.c b/drivers/mmc/host/sh_mmcif.c
index 96a45d87d871..bab971bdd5f1 100644
--- a/drivers/mmc/host/sh_mmcif.c
+++ b/drivers/mmc/host/sh_mmcif.c
@@ -1455,6 +1455,7 @@ static int sh_mmcif_probe(struct platform_device *pdev)
mmc->caps |= MMC_CAP_MMC_HIGHSPEED | MMC_CAP_WAIT_WHILE_BUSY;
mmc->caps2 |= MMC_CAP2_NO_SD | MMC_CAP2_NO_SDIO;
+ mmc->max_busy_timeout = 10000;
if (pd && pd->caps)
mmc->caps |= pd->caps;