Enable fast bcm4329 WIFI suspend/resume on Tegra2 board.

This part allows the mach-tegra support tell the tegra MMC host controller
to NOT turn off power for the MMC controller the WIFI part lives behind.
Thus bcm4329 firmware doesn't need to be reloaded.

Signed-off-by: Venkat Rao <vrao@broadcom>
Tested-by: Grant Grundler <grund...@chromium.org>
Reviewed-by: Olof Johansson <ol...@chromium.org>
----
I'm not certain if this should go through tegra or mmc tree.
Can you advise please?

This is part of http://codereview.chromium.org/6474032 .
The other three change sets required for Seaboard (Tegra2):
    http://codereview.chromium.org/6484021
    http://codereview.chromium.org/6488018
    http://codereview.chromium.org/6489022


diff --git a/arch/arm/mach-tegra/include/mach/sdhci.h 
b/arch/arm/mach-tegra/include/mach/sdhci.h
index 3ad086e..4231bc7 100644
--- a/arch/arm/mach-tegra/include/mach/sdhci.h
+++ b/arch/arm/mach-tegra/include/mach/sdhci.h
@@ -24,6 +24,7 @@ struct tegra_sdhci_platform_data {
        int wp_gpio;
        int power_gpio;
        int is_8bit;
+       int pm_flags;
 };
 
 #endif
diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c
index f7e1f96..343c97e 100644
--- a/drivers/mmc/host/sdhci-tegra.c
+++ b/drivers/mmc/host/sdhci-tegra.c
@@ -184,6 +184,8 @@ static int tegra_sdhci_pltfm_init(struct sdhci_host *host,
        clk_enable(clk);
        pltfm_host->clk = clk;
 
+       host->mmc->pm_caps = plat->pm_flags;
+
        if (plat->is_8bit)
                host->mmc->caps |= MMC_CAP_8_BIT_DATA;
 
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to