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>
This commit is contained in:
Aravind Venkateswaran 2016-08-19 12:38:43 -07:00
parent 0c8cf716fa
commit a036c03482

View file

@ -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(