From e943000632398ac560d05492d23665c8ea0113cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Jirman?= Date: Fri, 16 Mar 2018 20:31:55 +0100 Subject: mmc: add delay after power class selection This seems to fix issue with sporadic ETIMEOUT in eMMC cache initialization on second generation TBS A711 tablet. Signed-off-by: Ondrej Jirman --- drivers/mmc/core/mmc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c index 6a23be214543..8ef20ffc9828 100644 --- a/drivers/mmc/core/mmc.c +++ b/drivers/mmc/core/mmc.c @@ -1840,6 +1840,8 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr, */ mmc_select_powerclass(card); + msleep(20); + /* * Enable HPI feature (if supported) */ @@ -1858,6 +1860,8 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr, } } + msleep(20); + /* * If cache size is higher than 0, this indicates the existence of cache * and it can be turned on. Note that some eMMCs from Micron has been -- 2.35.3