From: Siddhartha Agrawal Date: Wed, 7 Dec 2016 23:40:38 +0000 (-0800) Subject: msm: mdss: dp: correctly ref count the pll resources X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=355786d15d3ba8d897354c75a57b7194e2aae6e9;p=sagit-ice-cold%2Fkernel_xiaomi_msm8998.git msm: mdss: dp: correctly ref count the pll resources This fixes the issue where the dp pll resource was not correctly keeping a refcount on the pll resource. This will fix the bootup warning when both DSI and DP are enabled. Crs-Fixed: 1088737 Change-Id: I19f8eef7f664a58cac1a082b8195e48c52613c5d Signed-off-by: Siddhartha Agrawal --- diff --git a/drivers/clk/msm/mdss/mdss-dp-pll-8998-util.c b/drivers/clk/msm/mdss/mdss-dp-pll-8998-util.c index c13ff563c8bf..0bd7e6413a6b 100644 --- a/drivers/clk/msm/mdss/mdss-dp-pll-8998-util.c +++ b/drivers/clk/msm/mdss/mdss-dp-pll-8998-util.c @@ -836,8 +836,8 @@ enum handoff dp_vco_handoff(struct clk *c) io->handoff_resources = true; ret = HANDOFF_ENABLED_CLK; } else { - io->handoff_resources = false; mdss_pll_resource_enable(io, false); + ret = HANDOFF_DISABLED_CLK; DEV_DBG("%s: PLL not locked\n", __func__); }