From 3d89a9035995123449bd159d7cca79df42fff61d Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Mon, 1 Nov 2010 17:17:47 -0700 Subject: [PATCH] ARM: tegra: dvfs: Disable dvfs on sdmmc 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 Change-Id: I59c0648ab6718571794e082d1f4828f158d00031 --- arch/arm/mach-tegra/tegra2_dvfs.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/mach-tegra/tegra2_dvfs.c b/arch/arm/mach-tegra/tegra2_dvfs.c index 4f56fb88fc17..024e1b970638 100644 --- a/arch/arm/mach-tegra/tegra2_dvfs.c +++ b/arch/arm/mach-tegra/tegra2_dvfs.c @@ -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), -- 2.34.1