mmc: sdio: call mmc_power_cycle before re-init sdio devices
authorxiaoyao <xiaoyao@rock-chips.com>
Wed, 9 Mar 2016 06:10:52 +0000 (14:10 +0800)
committerGerrit Code Review <gerrit@rock-chips.com>
Wed, 9 Mar 2016 11:46:47 +0000 (19:46 +0800)
Change-Id: I4ae9bb385c9235eb184de0f3bf06719b056f4842
Signed-off-by: xiaoyao <xiaoyao@rock-chips.com>
drivers/mmc/core/sdio.c

index b67ec30086e066edd7c27eb065103a84934aedb0..fa69d2fc5c5beaee2e6b1166ee6333a8cdd3cfd0 100644 (file)
@@ -1231,6 +1231,7 @@ int sdio_reset_comm(struct mmc_card *card)
 
        mmc_retune_disable(host);
 
+       mmc_power_cycle(host, host->card->ocr);
        mmc_go_idle(host);
 
        mmc_set_clock(host, host->f_min);