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

Commit ab016c7d authored by Siddhartha Agrawal's avatar Siddhartha Agrawal Committed by Gerrit - the friendly Code Review server
Browse files

msm: dsi: fix dsi clock errors if ulps is disabled



Correctly setup the proper return value in case the ulps feature
is disabled. If the ulps is disabled, the dsi clock functions return
an error causing a bootup failure.

Change-Id: I2650957a5d955f66b31bc1c5f373c146efc5c23b
Signed-off-by: default avatarSiddhartha Agrawal <agrawals@codeaurora.org>
parent 5fade566
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -1089,12 +1089,10 @@ static int mdss_dsi_ulps_config(struct mdss_dsi_ctrl_pdata *ctrl,
	pinfo = &pdata->panel_info;
	mipi = &pinfo->mipi;

	if (!mdss_dsi_ulps_feature_enabled(pdata) &&
		!pinfo->ulps_suspend_enabled &&
		(pinfo->blank_state != MDSS_PANEL_BLANK_BLANK)) {
		pr_debug("%s: ULPS feature not supported. enable=%d\n",
			__func__, enable);
		return -ENOTSUPP;
	if (!mdss_dsi_ulps_feature_enabled(pdata) ||
			!pinfo->ulps_suspend_enabled) {
		pr_debug("%s: ULPS feature is not enabled\n", __func__);
		return 0;
	}

	/*