summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRashi Bindra <rbindra@codeaurora.org>2017-05-16 15:31:05 +0530
committerRashi Bindra <rbindra@codeaurora.org>2017-05-23 18:03:23 +0530
commit9e8ba0aa51a74f0a6f75e8e7448fc2bcf3a8d4cf (patch)
tree7da29b93f862d51611906bf07eb38db99e29597b
parentc6d1c1699e7dcc7ec170baae48be94814061d0b7 (diff)
msm: mdss: Call regulator enable/disable for both DSI controllers
There is ref count mismatch in number of enable/disable calls for regulators with low power mode allowed flag which is resulting in random system crashes. This change makes sure number of enable/disable calls are same. Change-Id: I0c1906df8c3a83e8740412c272179d3d9c514c0e Signed-off-by: Rashi Bindra <rbindra@codeaurora.org>
-rw-r--r--drivers/video/fbdev/msm/msm_mdss_io_8974.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/fbdev/msm/msm_mdss_io_8974.c b/drivers/video/fbdev/msm/msm_mdss_io_8974.c
index 690d74fa5271..80dbe83972d7 100644
--- a/drivers/video/fbdev/msm/msm_mdss_io_8974.c
+++ b/drivers/video/fbdev/msm/msm_mdss_io_8974.c
@@ -2693,7 +2693,8 @@ int mdss_dsi_pre_clkon_cb(void *priv,
for (i = DSI_CORE_PM; i < DSI_MAX_PM; i++) {
if ((ctrl->ctrl_state & CTRL_STATE_DSI_ACTIVE) &&
(!pdata->panel_info.cont_splash_enabled) &&
- (!sdata->power_data[i].vreg_config->disabled))
+ (!sdata->power_data[i].vreg_config
+ ->lp_disable_allowed))
continue;
rc = msm_dss_enable_vreg(
sdata->power_data[i].vreg_config,