mmc: sdhci-msm: disable runtime pm and clock gating for SDIO
Disable power management features for SDIO as the current code is not ready to enable it. Change-Id: I234ebf6cc46d2a3b70bf9ba3f94b4b1abc1acd44 Signed-off-by: Pavan Anamula <pavana@codeaurora.org>
This commit is contained in:
parent
3b0520abdd
commit
6ae860507e
2 changed files with 20 additions and 2 deletions
|
@ -194,8 +194,13 @@ bool mmc_host_may_gate_card(struct mmc_card *card)
|
|||
* SDIO3.0 card allows the clock to be gated off so check if
|
||||
* that is the case or not.
|
||||
*/
|
||||
if (mmc_card_sdio(card) && card->cccr.async_intr_sup)
|
||||
return true;
|
||||
if (mmc_card_sdio(card) && card->cccr.async_intr_sup) {
|
||||
if (mmc_enable_qca6574_settings(card) ||
|
||||
mmc_enable_qca9377_settings(card))
|
||||
return false;
|
||||
else
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
* Don't gate SDIO cards! These need to be clocked at all times
|
||||
|
|
|
@ -4323,6 +4323,12 @@ static int sdhci_msm_runtime_suspend(struct device *dev)
|
|||
ktime_t start = ktime_get();
|
||||
int ret;
|
||||
|
||||
if (host->mmc->card && mmc_card_sdio(host->mmc->card)) {
|
||||
if (mmc_enable_qca6574_settings(host->mmc->card) ||
|
||||
mmc_enable_qca9377_settings(host->mmc->card))
|
||||
return 0;
|
||||
}
|
||||
|
||||
disable_irq(host->irq);
|
||||
disable_irq(msm_host->pwr_irq);
|
||||
|
||||
|
@ -4355,6 +4361,13 @@ static int sdhci_msm_runtime_resume(struct device *dev)
|
|||
ktime_t start = ktime_get();
|
||||
int ret;
|
||||
|
||||
if (host->mmc->card && mmc_card_sdio(host->mmc->card)) {
|
||||
if (mmc_enable_qca6574_settings(host->mmc->card) ||
|
||||
mmc_enable_qca9377_settings(host->mmc->card))
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
if (host->is_crypto_en) {
|
||||
ret = sdhci_msm_enable_controller_clock(host);
|
||||
if (ret) {
|
||||
|
|
Loading…
Add table
Reference in a new issue