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

Commit c619c290 authored by Terence Hampson's avatar Terence Hampson
Browse files

mdss: mdp3: verify return value from enabling clocks



When driver was enabling clocks it was not verifying that the call
was successful.

Change-Id: Ieb67a93b75cb1da6da05ae494dd1c65dc20d8a37
Signed-off-by: default avatarTerence Hampson <thampson@codeaurora.org>
parent 66d0b021
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1443,7 +1443,8 @@ static int mdp3_continuous_splash_on(struct mdss_panel_data *pdata)
	return 0;

splash_on_err:
	mdp3_clk_enable(0);
	if (mdp3_clk_enable(0))
		pr_err("%s: Unable to disable mdp3 clocks\n", __func__);
	return rc;
}

+6 −1
Original line number Diff line number Diff line
@@ -346,6 +346,7 @@ int mdp3_ppp_turnon(struct msm_fb_data_type *mfd, int on_off)
	struct mdss_panel_info *panel_info = mfd->panel_info;
	uint64_t ab = 0, ib = 0;
	int rate = 0;
	int rc;

	if (on_off) {
		rate = MDP_BLIT_CLK_RATE;
@@ -357,7 +358,11 @@ int mdp3_ppp_turnon(struct msm_fb_data_type *mfd, int on_off)
		ib = (ab * 3) / 2;
	}
	mdp3_clk_set_rate(MDP3_CLK_CORE, rate, MDP3_CLIENT_PPP);
	mdp3_clk_enable(on_off);
	rc = mdp3_clk_enable(on_off);
	if (rc < 0) {
		pr_err("%s: mdp3_clk_enable failed\n", __func__);
		return rc;
	}
	mdp3_bus_scale_set_quota(MDP3_CLIENT_PPP, ab, ib);
	ppp_stat->bw_on = on_off;
	return 0;