From: Marek Vasut Date: Tue, 10 Apr 2018 01:49:22 +0200 Subject: [U-Boot] [PATCH 5/5] mmc: renesas-sdhi: Wait after reconfiguring pins In-Reply-To: <20180409234922.27072-1-marek.vasut+renesas@gmail.com> References: <20180409234922.27072-1-marek.vasut+renesas@gmail.com> Message-ID: <20180409234922.27072-5-marek.vasut+renesas@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de The IP requires some time to recuperate after the IO pin properties were changed. Add a delay to assure this. Signed-off-by: Marek Vasut Cc: Jaehoon Chung Cc: Masahiro Yamada --- drivers/mmc/renesas-sdhi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mmc/renesas-sdhi.c b/drivers/mmc/renesas-sdhi.c index e9edcf5f17..8564f42e20 100644 --- a/drivers/mmc/renesas-sdhi.c +++ b/drivers/mmc/renesas-sdhi.c @@ -289,6 +289,9 @@ out: static int renesas_sdhi_set_ios(struct udevice *dev) { int ret = matsu_sd_set_ios(dev); + + mdelay(10); + #if CONFIG_IS_ENABLED(MMC_HS200_SUPPORT) struct matsu_sd_priv *priv = dev_get_priv(dev); -- 2.16.2