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>
This commit is contained in:
Rashi Bindra 2017-05-16 15:31:05 +05:30
parent c6d1c1699e
commit 9e8ba0aa51

View file

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