Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3e4dff95 authored by Aravind Venkateswaran's avatar Aravind Venkateswaran Committed by Gerrit - the friendly Code Review server
Browse files

msm: mdss: dsi: fix handling of ulps_suspend feature flag



In the current implementation, when ulps_suspend feature is enabled, it
results in ULPS mode being configured even when turning off clocks
during idle screen use cases. Fix this by correcting the conditional
logic when turning off the link clocks.

Change-Id: I44e8556afcc5110afb9e2193e8558306847e90a0
Signed-off-by: default avatarAravind Venkateswaran <aravindh@codeaurora.org>
parent 13e54426
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -1387,11 +1387,13 @@ static int mdss_dsi_clk_ctrl_sub(struct mdss_dsi_ctrl_pdata *ctrl,
			 * to enable ULPS when turning off the clocks
			 * while blanking the panel.
			 */
			if (((mdss_dsi_ulps_feature_enabled(pdata)) &&
				(pdata->panel_info.blank_state !=
				 MDSS_PANEL_BLANK_BLANK)) ||
				(pdata->panel_info.ulps_suspend_enabled))
			if (pdata->panel_info.blank_state ==
				MDSS_PANEL_BLANK_BLANK) {
				if (pdata->panel_info.ulps_suspend_enabled)
					mdss_dsi_ulps_config(ctrl, 1);
			} else if (mdss_dsi_ulps_feature_enabled(pdata)) {
				mdss_dsi_ulps_config(ctrl, 1);
			}

			mdss_dsi_link_clk_stop(ctrl);
		}