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 <nan.li@amlogic.com>
This commit is contained in:
Nan Li
2018-04-20 13:53:51 +08:00
committed by Yixun Lan
parent 07d8ca719e
commit 565504efbc

View File

@@ -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;
}