summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAravind Venkateswaran <aravindh@codeaurora.org>2016-08-19 12:38:43 -0700
committerAravind Venkateswaran <aravindh@codeaurora.org>2016-08-19 13:14:03 -0700
commita036c03482d10cfd7c46c32ca7de0efde405ed5d (patch)
tree177b460f001d99476b85845c5a3e58db5307c23c
parent0c8cf716fa02d0f6b6ef2ef1446f9f4819fc83dd (diff)
msm: mdss: dsi: fix the check for PLL off when turning off PHY
Current implementation checks for the DSI PLL to be off prior to shutting down the DSI PHY, and reports a warning if the PLL is still detected to be on. However, this check is incorrectly implemented resulting a false warning being printed every time the display is turned off. Fix this by reading the right set of registers to check for the PLL status. Change-Id: I1e9f9956af6d35b33ae24d69ff3c5d3aa695a26b Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
-rw-r--r--drivers/video/fbdev/msm/mdss_dsi_phy_v3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/fbdev/msm/mdss_dsi_phy_v3.c b/drivers/video/fbdev/msm/mdss_dsi_phy_v3.c
index 7d201a574a00..c65222876106 100644
--- a/drivers/video/fbdev/msm/mdss_dsi_phy_v3.c
+++ b/drivers/video/fbdev/msm/mdss_dsi_phy_v3.c
@@ -95,12 +95,12 @@ static bool mdss_dsi_phy_v3_is_pll_on(struct mdss_dsi_ctrl_pdata *ctrl)
if (mdss_dsi_is_ctrl_clk_slave(ctrl))
return false;
- data = DSI_PHY_R32(ctrl->phy_io.base, CMN_CTRL_0);
+ data = DSI_PHY_R32(ctrl->phy_io.base, CMN_PLL_CNTRL);
/* Make sure the register has been read prior to checking the status */
mb();
- return (data & BIT(5));
+ return (data & BIT(0));
}
static void mdss_dsi_phy_v3_set_pll_source(