summaryrefslogtreecommitdiff
path: root/drivers/mmc/host/sdhci-tegra.c
diff options
context:
space:
mode:
authorDeepesh Gujarathi <dgujarathi@nvidia.com>2010-04-30 20:11:02 +0530
committerYu-Huan Hsu <yhsu@nvidia.com>2010-04-30 17:16:50 -0700
commit3bc799a0e29981a1a41a2780917aea5aa2258979 (patch)
treeac3cbdb5687607394d8b45131828a52be00a2943 /drivers/mmc/host/sdhci-tegra.c
parent70cf653c28cea97ca63d1d7a6770348e64709e67 (diff)
tegra mmc: enable sdio controller clk during wakeup
Enable the sdio controller clk before the sd stack begins to enumerate the card during system resume. Failing to do so results in timeout errors and the sd card fails to mount Change-Id: I2f5399003e21d71c6a3c4776fcefda430bca20ef Reviewed-on: http://git-master/r/1262 Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com> Tested-by: Mayuresh Kulkarni <mkulkarni@nvidia.com> Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> Tested-by: Bitan Biswas <bbiswas@nvidia.com> Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Diffstat (limited to 'drivers/mmc/host/sdhci-tegra.c')
-rwxr-xr-xdrivers/mmc/host/sdhci-tegra.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c
index 3216d98329f8..0d651879af46 100755
--- a/drivers/mmc/host/sdhci-tegra.c
+++ b/drivers/mmc/host/sdhci-tegra.c
@@ -400,6 +400,10 @@ static int tegra_sdhci_resume(struct platform_device *pdev)
t_sdhci = platform_get_drvdata(pdev);
if (t_sdhci->sdhost->card_type != MMC_TYPE_SDIO) {
+ /* enable clock to sdio controller */
+ ret = tegra_sdhci_set_controller_clk(t_sdhci, NV_TRUE);
+ if (ret)
+ pr_err("tegra_sdhci_resume:tegra_sdhci_set_clock failed with error %d\n", err);
ret = sdhci_resume_host(t_sdhci->sdhost);
if (ret)
pr_err("sdhci_resume_host failed with error %d\n", ret);