From: Abhilash Kesavan Date: Mon, 19 Nov 2012 04:56:20 +0000 (+0530) Subject: mmc: sdhci-pltfm: Support optional pm properties X-Git-Tag: next-20121205~66^2~34 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=544d9dc3d4c3ce4e5e06cb30d19f40adb010e6c7;p=karo-tx-linux.git mmc: sdhci-pltfm: Support optional pm properties Add support for optional pm capabilities such as MMC_PM_KEEP_POWER and MMC_PM_WAKE_SDIO_IRQ. Signed-off-by: Abhilash Kesavan Signed-off-by: Chris Ball --- diff --git a/drivers/mmc/host/sdhci-pltfm.c b/drivers/mmc/host/sdhci-pltfm.c index 27164457f861..c6c3b1243597 100644 --- a/drivers/mmc/host/sdhci-pltfm.c +++ b/drivers/mmc/host/sdhci-pltfm.c @@ -89,6 +89,12 @@ void sdhci_get_of_property(struct platform_device *pdev) clk = of_get_property(np, "clock-frequency", &size); if (clk && size == sizeof(*clk) && *clk) pltfm_host->clock = be32_to_cpup(clk); + + if (of_find_property(np, "keep-power-in-suspend", NULL)) + host->mmc->pm_caps |= MMC_PM_KEEP_POWER; + + if (of_find_property(np, "enable-sdio-wakeup", NULL)) + host->mmc->pm_caps |= MMC_PM_WAKE_SDIO_IRQ; } } #else