summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTatenda Chipeperekwa <tatendac@codeaurora.org>2016-01-07 16:32:20 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 21:14:37 -0700
commit2fdabe4dc58239e7461783ddb421f686696ae73c (patch)
tree8da52de3f178ac80fc4105d51703d42c77cf9f71
parente5793411eeb131ddb2b4674fbf2d60caaf8853c2 (diff)
clk: msm: mdss: Read PLL/PHY status once during bootup
Read the PLL/PHY status once during bootup to avoid delays due to polling. Polling for PLL/PHY status is only required when handling HDMI use cases in which the cable is connected after bootup is complete. Change-Id: Ie1d5983a7784cb5f3472527d1b510f128ae9d325 Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
-rw-r--r--drivers/clk/msm/mdss/mdss-hdmi-pll-8996.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/clk/msm/mdss/mdss-hdmi-pll-8996.c b/drivers/clk/msm/mdss/mdss-hdmi-pll-8996.c
index e38cce64f0e9..8a96a0a0580f 100644
--- a/drivers/clk/msm/mdss/mdss-hdmi-pll-8996.c
+++ b/drivers/clk/msm/mdss/mdss-hdmi-pll-8996.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2014-2015, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -2360,8 +2360,8 @@ static enum handoff hdmi_8996_vco_handoff(struct clk *c)
io->handoff_resources = true;
- if (hdmi_8996_pll_lock_status(io)) {
- if (hdmi_8996_phy_ready_status(io)) {
+ if (MDSS_PLL_REG_R(io->pll_base, QSERDES_COM_C_READY_STATUS) & BIT(0)) {
+ if (MDSS_PLL_REG_R(io->phy_base, HDMI_PHY_STATUS) & BIT(0)) {
io->pll_on = true;
c->rate = hdmi_8996_vco_get_rate(c);
ret = HANDOFF_ENABLED_CLK;