Last active
August 29, 2015 14:09
-
-
Save handymenny/85a34539b1aa5beadbda to your computer and use it in GitHub Desktop.
mmc_sdcc: Dirty HACK Disable pm_runtime (Dirty patch)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/drivers/mmc/host/msm_sdcc.c b/drivers/mmc/host/msm_sdcc.c | |
index b3d96cd..04d7756 100644 | |
--- a/drivers/mmc/host/msm_sdcc.c | |
+++ b/drivers/mmc/host/msm_sdcc.c | |
@@ -2913,6 +2913,7 @@ static void msmsdcc_enable_sdio_irq(struct mmc_host *mmc, int enable) | |
} | |
#endif /* CONFIG_MMC_MSM_SDIO_SUPPORT */ | |
+#undef CONFIG_PM_RUNTIME | |
#ifdef CONFIG_PM_RUNTIME | |
static int msmsdcc_enable(struct mmc_host *mmc) | |
{ | |
@@ -4844,11 +4845,11 @@ msmsdcc_probe(struct platform_device *pdev) | |
* notification to increment/decrement runtime pm usage count. | |
*/ | |
mmc->caps |= MMC_CAP_DISABLE; | |
- pm_runtime_enable(&(pdev)->dev); | |
+ // pm_runtime_enable(&(pdev)->dev); | |
#else | |
if (mmc->caps & MMC_CAP_NONREMOVABLE) { | |
mmc->caps |= MMC_CAP_DISABLE; | |
- pm_runtime_enable(&(pdev)->dev); | |
+ // pm_runtime_enable(&(pdev)->dev); | |
} | |
#endif | |
#ifndef CONFIG_PM_RUNTIME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment