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

Commit c5f82809 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: clock-mdss-8974: Proper hdmi set rate"

parents 8071a9ea 992cbaf9
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -2428,11 +2428,9 @@ static int hdmi_vco_prepare(struct clk *c)

	pr_debug("%s: rate=%ld\n", __func__, vco->rate);

	if (!vco->rate_set)
	if (!vco->rate_set && vco->rate)
		ret = hdmi_vco_set_rate(c, vco->rate);

	vco->rate_set = false;

	if (!ret)
		ret = clk_prepare(mdss_ahb_clk);

@@ -2441,6 +2439,10 @@ static int hdmi_vco_prepare(struct clk *c)

static void hdmi_vco_unprepare(struct clk *c)
{
	struct hdmi_pll_vco_clk *vco = to_hdmi_vco_clk(c);

	vco->rate_set = false;

	clk_unprepare(mdss_ahb_clk);
}