public inbox for linux-tegra@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tegra/mmc: add pm_flags
@ 2011-03-26  0:07 Grant Grundler
       [not found] ` <20110326000712.DD5D3208182-WbMPnaG8TBjlUACayq9hv/yj43VRqXoZVpNB7YpNyf8@public.gmane.org>
  2011-03-26  0:28 ` Olof Johansson
  0 siblings, 2 replies; 7+ messages in thread
From: Grant Grundler @ 2011-03-26  0:07 UTC (permalink / raw)
  To: Chris Ball, Colin Cross, Erik Gilling, Olof Johansson
  Cc: linux-tegra, linux-mmc, grundler, olofj, vrao

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 <grundler@chromium.org>
Reviewed-by: Olof Johansson <olofj@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;
 

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-03-26  1:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-26  0:07 [PATCH] tegra/mmc: add pm_flags Grant Grundler
     [not found] ` <20110326000712.DD5D3208182-WbMPnaG8TBjlUACayq9hv/yj43VRqXoZVpNB7YpNyf8@public.gmane.org>
2011-03-26  0:27   ` Chris Ball
2011-03-26  0:38     ` Olof Johansson
2011-03-26  0:43   ` Chris Ball
     [not found]     ` <m3mxkik8yi.fsf-0VGQAjvlmrQzNDMTQreKSUB+6BGkLq7r@public.gmane.org>
2011-03-26  0:57       ` Grant Grundler
     [not found]         ` <AANLkTimSe6ec7p32+eJFk25TTHeK5vTsJzo6wMrcrEEz-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-03-26  1:04           ` Chris Ball
2011-03-26  0:28 ` Olof Johansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox