msm: mdss: update the clocks for slave controller

While updating refresh rate through dynamic fps node,
clock calculations are still needed for the slave controller
and enablement of clock for slave controller is not needed.
This change fixes clock updation of slave controller with
dynamic fps feature enabled.

Change-Id: Ibabe9bddba0633cc9a3441207f39a2f3fa7a8f71
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
This commit is contained in:
Jeevan Shriram 2014-09-11 12:11:03 -07:00 committed by David Keitel
parent a3888ae72d
commit d0966f5885

View file

@ -951,12 +951,6 @@ static int __mdss_dsi_dfps_update_clks(struct mdss_panel_data *pdata,
if (pdata->panel_info.dfps_update if (pdata->panel_info.dfps_update
== DFPS_IMMEDIATE_CLK_UPDATE_MODE) { == DFPS_IMMEDIATE_CLK_UPDATE_MODE) {
if (mdss_dsi_is_ctrl_clk_slave(ctrl_pdata)) {
pr_debug("%s DFPS already updated.\n", __func__);
return rc;
}
__mdss_dsi_dyn_refresh_config(ctrl_pdata); __mdss_dsi_dyn_refresh_config(ctrl_pdata);
__mdss_dsi_calc_dfps_delay(pdata); __mdss_dsi_calc_dfps_delay(pdata);
ctrl_pdata->pclk_rate = ctrl_pdata->pclk_rate =
@ -967,6 +961,11 @@ static int __mdss_dsi_dfps_update_clks(struct mdss_panel_data *pdata,
pr_debug("byte_rate=%i\n", ctrl_pdata->byte_clk_rate); pr_debug("byte_rate=%i\n", ctrl_pdata->byte_clk_rate);
pr_debug("pclk_rate=%i\n", ctrl_pdata->pclk_rate); pr_debug("pclk_rate=%i\n", ctrl_pdata->pclk_rate);
if (mdss_dsi_is_ctrl_clk_slave(ctrl_pdata)) {
pr_debug("%s DFPS already updated.\n", __func__);
return rc;
}
/* add an extra reference to main clks */ /* add an extra reference to main clks */
clk_prepare_enable(ctrl_pdata->pll_byte_clk); clk_prepare_enable(ctrl_pdata->pll_byte_clk);
clk_prepare_enable(ctrl_pdata->pll_pixel_clk); clk_prepare_enable(ctrl_pdata->pll_pixel_clk);