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

Commit 55ee5415 authored by Benjamin Chan's avatar Benjamin Chan Committed by Narendra Muppalla
Browse files

msm: sde: Force setting SDE rotator clock even rate is the same



Due to a HW issue on the multimedia block on MSMCOBALT, the clock
sources or RCGs can end up running at XO frequency after a
multimedia power collapse. In order to avoid this issue, SDE rotator
as a multimedia clients need to call clk_set_rate() prior to
enabling its clocks.

CRs-Fixed: 1090358
Change-Id: Ib00b894f44a349fb3650df43f73f3599c09e46de
Signed-off-by: default avatarBenjamin Chan <bkchan@codeaurora.org>
parent 886ff677
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -237,7 +237,7 @@ static void sde_rotator_set_clk_rate(struct sde_rot_mgr *mgr,
		clk_rate = clk_round_rate(clk, rate);
		if (IS_ERR_VALUE(clk_rate)) {
			SDEROT_ERR("unable to round rate err=%ld\n", clk_rate);
		} else if (clk_rate != clk_get_rate(clk)) {
		} else {
			ret = clk_set_rate(clk, clk_rate);
			if (IS_ERR_VALUE(ret))
				SDEROT_ERR("clk_set_rate failed, err:%d\n",