armbian_build/patch/kernel/archive/sunxi-5.18/patches.megous/mmc-add-delay-after-power-class-selection.patch
The-going 3048cc2107
Sunxi 5.18 (#3826)
* sunxi-5.18: initial state: add patches megous

* sunxi-5.18: Adapt patches for error-free application

* remove unused patches

* Add the ability to compile sunxi-5.18
2022-05-27 11:47:16 +03:00

39 lines
1.0 KiB
Diff

From c8e07eb9f1e7664e5ecf24e26bc99094181f8773 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ond=C5=99ej=20Jirman?= <megi@xff.cz>
Date: Fri, 16 Mar 2018 20:31:55 +0100
Subject: [PATCH 013/515] 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 <megi@xff.cz>
---
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 efa95dc4fc4e..42a088faccad 100644
--- a/drivers/mmc/core/mmc.c
+++ b/drivers/mmc/core/mmc.c
@@ -1826,6 +1826,8 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr,
*/
mmc_select_powerclass(card);
+ msleep(20);
+
/*
* Enable HPI feature (if supported)
*/
@@ -1844,6 +1846,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