From a036c03482d10cfd7c46c32ca7de0efde405ed5d Mon Sep 17 00:00:00 2001 From: Aravind Venkateswaran Date: Fri, 19 Aug 2016 12:38:43 -0700 Subject: [PATCH] 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 --- drivers/video/fbdev/msm/mdss_dsi_phy_v3.c | 4 ++-- 1 file 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(