mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 12:25:00 -04:00
Merge "mmc: sdhci-msm: Add the missing check in sdhci_msm_check_power_status"
This commit is contained in:
commit
f532a03ce3
1 changed files with 4 additions and 2 deletions
|
|
@ -1763,8 +1763,10 @@ static void sdhci_msm_check_power_status(struct sdhci_host *host, u32 req_type)
|
|||
return;
|
||||
}
|
||||
|
||||
if (mmc->ops->get_cd && !mmc->ops->get_cd(mmc)) {
|
||||
pr_debug("%s: card is not present. Do not wait for pwr irq\n",
|
||||
if (mmc->card && mmc->ops->get_cd && !mmc->ops->get_cd(mmc) &&
|
||||
(req_type & REQ_BUS_ON)) {
|
||||
pr_debug(
|
||||
"%s: Regulators are never turned on when SD card is removed so do not wait for pwr irq\n",
|
||||
mmc_hostname(host->mmc));
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue