tegra: SDHCI: disable clock at suspend
authorTodd Poynor <toddpoynor@google.com>
Fri, 19 Nov 2010 04:24:24 +0000 (20:24 -0800)
committerTodd Poynor <toddpoynor@google.com>
Sat, 20 Nov 2010 00:11:04 +0000 (16:11 -0800)
Ensure sdmmc<n> clock is disabled at suspend, and that the subsequent
resume will perform clock enable processing, which is required if LP0
suspend is in effect.

Change-Id: Ia98698f13cc557040e5fdbc523a97effb63ac63b
Signed-off-by: Todd Poynor <toddpoynor@google.com>
drivers/mmc/host/sdhci-tegra.c

index 19f522d3a59f7145bd0c624cb1f7c97baa64c013..2cb479987b8d6a37725db6fb709bf4c07cc25381 100644 (file)
@@ -206,6 +206,7 @@ static int tegra_sdhci_suspend(struct platform_device *pdev, pm_message_t state)
        if (ret)
                pr_err("%s: failed, error = %d\n", __func__, ret);
 
+       tegra_sdhci_enable_clock(host, 0);
        return ret;
 }