OSDN Git Service

msm: mdss: dp: correctly ref count the pll resources
authorSiddhartha Agrawal <agrawals@codeaurora.org>
Wed, 7 Dec 2016 23:40:38 +0000 (15:40 -0800)
committerGerrit - the friendly Code Review server <code-review@localhost>
Thu, 8 Dec 2016 20:37:08 +0000 (12:37 -0800)
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 <agrawals@codeaurora.org>
drivers/clk/msm/mdss/mdss-dp-pll-8998-util.c

index c13ff56..0bd7e64 100644 (file)
@@ -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__);
        }