diff options
| author | Can Guo <cang@codeaurora.org> | 2017-11-03 14:16:55 +0800 |
|---|---|---|
| committer | Can Guo <cang@codeaurora.org> | 2017-11-03 14:27:00 +0800 |
| commit | e2df383e0fbc0a280aba7bf8e3c32cf3baac3d12 (patch) | |
| tree | 2310f0eed662f391d6b0c43fdeef1c6516474982 /drivers/mmc/core | |
| parent | 11734d0451bd4ba9722ca5b2609490f66ead332c (diff) | |
mmc: core: add power on to SD card detect
In commit aaf56cab2137 ("mmc: core: power off host if
SD card resume fails"), the mmc host is powered off if
SD card init failed during resume. However, the power
is not turned on before next time SD card detect.
It would not cause crash or malfunction but lead to
too many warnings. This change adds power on to
function mmc_sd_detect to make sure the power is on
before send commands to SD card.
Change-Id: I7c85ec4d6b561d167f9ff77a71f8e00f5860e8d2
Signed-off-by: Can Guo <cang@codeaurora.org>
Diffstat (limited to 'drivers/mmc/core')
| -rw-r--r-- | drivers/mmc/core/sd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/core/sd.c b/drivers/mmc/core/sd.c index 21836eac001e..65d7dbe1dea4 100644 --- a/drivers/mmc/core/sd.c +++ b/drivers/mmc/core/sd.c @@ -1159,6 +1159,8 @@ static void mmc_sd_detect(struct mmc_host *host) return; } + mmc_power_up(host, host->ocr_avail); + /* * Just check if our card has been removed. */ |
