Call the clock notifiers immediately before changing the clock's rate or
parent.

Signed-off-by: Paul Walmsley <[email protected]>
---
 arch/arm/mach-omap2/clock.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-omap2/clock.c b/arch/arm/mach-omap2/clock.c
index 843d1b5..2a024bf 100644
--- a/arch/arm/mach-omap2/clock.c
+++ b/arch/arm/mach-omap2/clock.c
@@ -802,6 +802,8 @@ int omap2_clk_set_rate(struct clk *clk, unsigned long rate)
        pr_debug("clock: %s: set_rate from %ld Hz to %ld Hz\n", clk->name,
                 clk->rate, rate);
 
+       omap_clk_notify_downstream(clk, CLK_PRE_RATE_CHANGE);
+
        ret = clk->set_rate(clk, rate);
 
        temp_rate = clk->rate;
@@ -868,6 +870,8 @@ int omap2_clk_set_parent(struct clk *clk, struct clk 
*new_parent)
                propagate_rate(clk, TEMP_RATE);
        }
 
+       omap_clk_notify_downstream(clk, CLK_PRE_RATE_CHANGE);
+
        if (clk->usecount > 0)
                _omap2_clk_disable(clk);
 


--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to