mmc: sh_mmcif: Inform the mmc core about the max busy timeout
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 21 Jun 2016 13:12:49 +0000 (15:12 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 25 Jul 2016 08:34:24 +0000 (10:34 +0200)
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>
drivers/mmc/host/sh_mmcif.c

index 96a45d87d87148921d32a7a1a07b912bd92d5f9a..bab971bdd5f10e5b77db8949557e97926f4b3851 100644 (file)
@@ -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;