ARM: OMAP3+: DPLL: stop reparenting to same parent if already done
authorNishanth Menon <nm@ti.com>
Fri, 28 Feb 2014 19:43:47 +0000 (12:43 -0700)
committerPaul Walmsley <paul@pwsan.com>
Fri, 28 Feb 2014 19:43:47 +0000 (12:43 -0700)
omap3_noncore_dpll_set_rate forces a reparent to the same clk_ref
for every call that takes place. This is an can be done only if a change
is detected.

Signed-off-by: Nishanth Menon <nm@ti.com>
Acked-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/dpll3xxx.c

index 3185ced807c952804d50199fd3ff7bc8ea68fb8f..d9bcbf7641b5fed454dad9acce5d5cda07ad6811 100644 (file)
@@ -525,7 +525,7 @@ int omap3_noncore_dpll_set_rate(struct clk_hw *hw, unsigned long rate,
        * stuff is inherited for free
        */
 
-       if (!ret)
+       if (!ret && clk_get_parent(hw->clk) != new_parent)
                __clk_reparent(hw->clk, new_parent);
 
        return 0;
This page took 0.027316 seconds and 5 git commands to generate.