Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f532a03c authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mmc: sdhci-msm: Add the missing check in sdhci_msm_check_power_status"

parents 1bb98f4d 8a53211a
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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;
	}