summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2016-09-19 23:28:13 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2016-09-19 23:28:12 -0700
commit99a1044389864b0746055c51b9298c0504553168 (patch)
tree6728ca139c47b2b8d2eda61a1ba98243e9c43299
parent6fa5e2492296c7e179d834f24108c311bfd5eaf8 (diff)
parent362342211d629b0c91e30d156f08d9303bc4779b (diff)
Merge "msm: mdss: avoid shutting down PHY PMIC regulators"
-rw-r--r--drivers/video/fbdev/msm/msm_mdss_io_8974.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/drivers/video/fbdev/msm/msm_mdss_io_8974.c b/drivers/video/fbdev/msm/msm_mdss_io_8974.c
index 1f62232e196b..b5b5a026733e 100644
--- a/drivers/video/fbdev/msm/msm_mdss_io_8974.c
+++ b/drivers/video/fbdev/msm/msm_mdss_io_8974.c
@@ -2341,18 +2341,8 @@ int mdss_dsi_post_clkoff_cb(void *priv,
pdata = &ctrl->panel_data;
for (i = DSI_MAX_PM - 1; i >= DSI_CORE_PM; i--) {
- /*
- * if DSI state is active
- * 1. allow to turn off the core power module.
- * 2. allow to turn off phy power module if it is
- * turned off
- *
- * allow to turn off all power modules if DSI is not
- * active
- */
if ((ctrl->ctrl_state & CTRL_STATE_DSI_ACTIVE) &&
- (i != DSI_CORE_PM) &&
- (ctrl->phy_power_off && (i != DSI_PHY_PM)))
+ (i != DSI_CORE_PM))
continue;
rc = msm_dss_enable_vreg(
sdata->power_data[i].vreg_config,
@@ -2397,15 +2387,12 @@ int mdss_dsi_pre_clkon_cb(void *priv,
* 3.> CTRL_PM need to be enabled/disabled
* only during unblank/blank. Their state should
* not be changed during static screen.
- * 4.> PHY_PM can be turned enabled/disabled
- * if phy regulators are enabled/disabled.
*/
pr_debug("%s: Enable DSI core power\n", __func__);
for (i = DSI_CORE_PM; i < DSI_MAX_PM; i++) {
if ((ctrl->ctrl_state & CTRL_STATE_DSI_ACTIVE) &&
(!pdata->panel_info.cont_splash_enabled) &&
- (i != DSI_CORE_PM) &&
- (ctrl->phy_power_off && (i != DSI_PHY_PM)))
+ (i != DSI_CORE_PM))
continue;
rc = msm_dss_enable_vreg(
sdata->power_data[i].vreg_config,