Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5961a614 authored by Saravana Kannan's avatar Saravana Kannan
Browse files

msm: clock-generic: Update the rate field on mux parent change.



Changing the parent of a mux changes its rate to the rate of the new
parent.  So, update the rate field of the clock when changing the parent of
the clock.

Change-Id: Ib219a5eb025c5bde922eed1864ce5296c7e84a8d
Signed-off-by: default avatarSaravana Kannan <skannan@codeaurora.org>
parent 6535fca0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -70,6 +70,7 @@ static int mux_set_parent(struct clk *c, struct clk *p)

	old_parent = c->parent;
	c->parent = p;
	c->rate = clk_get_rate(p);
	__clk_post_reparent(c, old_parent, &flags);

	return 0;