summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/tegra_bb.c
diff options
context:
space:
mode:
authorPrashant Gaikwad <pgaikwad@nvidia.com>2013-06-26 20:17:35 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 13:33:14 -0700
commite593117f486b5567cd6b63b7e539fb0cf42222da (patch)
tree8e50d03dbf50687467602627a20ae2842e0791b3 /arch/arm/mach-tegra/tegra_bb.c
parent67b800d838659791e50099869d2b40b9c41587fd (diff)
arm: tegra: resume device only if floor is not already set
Bug 1304124 Change-Id: Iad4fe7df0c1749c462cd7de155fa5ecde23f5e28 Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com> Reviewed-on: http://git-master/r/242469 (cherry picked from commit 85ca483b895cfe7c91fc4ff49d17d0adb11fcfcf) Reviewed-on: http://git-master/r/252267 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/tegra_bb.c')
-rw-r--r--arch/arm/mach-tegra/tegra_bb.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/tegra_bb.c b/arch/arm/mach-tegra/tegra_bb.c
index cb0b7592cd4d..3fc0aab6bbdb 100644
--- a/arch/arm/mach-tegra/tegra_bb.c
+++ b/arch/arm/mach-tegra/tegra_bb.c
@@ -955,10 +955,11 @@ static void tegra_bb_emc_dvfs(struct work_struct *work)
* do not store prev_state */
spin_unlock_irqrestore(&bb->lock, flags);
- pm_runtime_get_sync(bb->dev);
pr_info("%s: bbc crash detected, set EMC to max\n", __func__);
- if (bb->prev_state != BBC_SET_FLOOR)
+ if (bb->prev_state != BBC_SET_FLOOR) {
+ pm_runtime_get_sync(bb->dev);
clk_prepare_enable(bb->emc_clk);
+ }
tegra_emc_dsr_override(TEGRA_EMC_DSR_OVERRIDE);
clk_set_rate(bb->emc_clk, BBC_MC_MAX_FREQ);