From 565504efbc379e6ece603e6844aced6873480522 Mon Sep 17 00:00:00 2001 From: Nan Li Date: Fri, 20 Apr 2018 13:53:51 +0800 Subject: [PATCH] emmc: modify emmc shutdown time too long PD#164859: modify emmc shutdown time too long. Kingston EMMC08G-T227 POWER_OFF_LONG_TIME is 0xff, shutdown time is too long. modify mmc_delay 0 when POWER_OFF_LONG_TIME is 0xff. Change-Id: Ie85be335a77d9ec82a12158996c2c773d113c41f Signed-off-by: Nan Li --- drivers/mmc/core/mmc_ops.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/core/mmc_ops.c b/drivers/mmc/core/mmc_ops.c index ad6e9798e949..179300dfbe88 100644 --- a/drivers/mmc/core/mmc_ops.c +++ b/drivers/mmc/core/mmc_ops.c @@ -563,7 +563,10 @@ int __mmc_switch(struct mmc_card *card, u8 set, u8 index, u8 value, * rely on waiting for the stated timeout to be sufficient. */ if (!send_status && !host->ops->card_busy) { - mmc_delay(timeout_ms); +#ifdef CONFIG_AMLOGIC_MMC + if (timeout_ms < 5100) +#endif + mmc_delay(timeout_ms); goto out; }