ARM: tegra: dvfs: Disable dvfs on sdmmc
authorColin Cross <ccross@android.com>
Tue, 2 Nov 2010 00:17:47 +0000 (17:17 -0700)
committerColin Cross <ccross@android.com>
Thu, 4 Nov 2010 00:37:56 +0000 (17:37 -0700)
The sdhci core calls clock functions with a spinlock held, which
conflicts with the mutex in dvfs clocks.  Disable dvfs on sdmmc
for now.

Signed-off-by: Colin Cross <ccross@android.com>
Change-Id: I59c0648ab6718571794e082d1f4828f158d00031

arch/arm/mach-tegra/tegra2_dvfs.c

index 4f56fb88fc1781ac374ae4f263823dba955cd8dc..024e1b9706381d69db55d2eea19a8d17b17692ca 100644 (file)
@@ -81,10 +81,20 @@ static struct dvfs dvfs_init[] = {
        CPU_DVFS("cpu", 3, MHZ, 730, 760, 845, 845, 1000),
 
        /* Core voltages (mV):       950,    1000,   1100,   1200,   1275 */
+
+#if 0
+       /*
+        * The sdhci core calls the clock ops with a spinlock held, which
+        * conflicts with the sleeping dvfs api.
+        * For now, boards must ensure that the core voltage does not drop
+        * below 1V, or that the sdmmc busses are set to 44 MHz or less.
+        */
        CORE_DVFS("sdmmc1",  1, KHZ, 44000,  52000,  52000,  52000,  52000),
        CORE_DVFS("sdmmc2",  1, KHZ, 44000,  52000,  52000,  52000,  52000),
        CORE_DVFS("sdmmc3",  1, KHZ, 44000,  52000,  52000,  52000,  52000),
        CORE_DVFS("sdmmc4",  1, KHZ, 44000,  52000,  52000,  52000,  52000),
+#endif
+
        CORE_DVFS("ndflash", 1, KHZ, 130000, 150000, 158000, 164000, 164000),
        CORE_DVFS("nor",     1, KHZ, 0,      92000,  92000,  92000,  92000),
        CORE_DVFS("ide",     1, KHZ, 0,      0,      100000, 100000, 100000),