ARM: tegra11: clock: Update emc dvfs in clock resume
Alex Frid [Thu, 13 Jun 2013 05:28:16 +0000 (22:28 -0700)]
Added emc dvfs update in clock resume in case when emc parent has been
changed across suspend (this update would also happen automatically
during resume of any driver with emc shared user, so this change is
"just in case" there is no driver that resumes emc shared users).

Change-Id: I4d4cf8092df52752c2f574e100b7128387dfad13
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/238333
(cherry picked from commit 478e56f18b9ff058f06c81dc8f70f5fa5c72a4ed)
Reviewed-on: http://git-master/r/240862
(cherry picked from commit a6e5077f40146a9325c91c7c21ae43b624190afa)
Reviewed-on: http://git-master/r/260243
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

arch/arm/mach-tegra/tegra11_clocks.c

index f5fff0f..2b49f59 100644 (file)
@@ -7899,6 +7899,8 @@ static void tegra11_clk_resume(void)
                   count and s/w state need to be updated */
                clk_disable(p);
                clk_enable(tegra_clk_emc.parent);
+               tegra_dvfs_set_rate(&tegra_clk_emc,
+                                   clk_get_rate_all_locked(&tegra_clk_emc));
        }
        tegra_emc_timing_invalidate();