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

Commit c7935eb2 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drm/msm/dsi-staging: add lp11-init support for DRM DSI driver"

parents 1eed9660 f5d477c6
Loading
Loading
Loading
Loading
+8 −15
Original line number Diff line number Diff line
@@ -1771,6 +1771,9 @@ static int dsi_panel_parse_misc_features(struct dsi_panel *panel,

	panel->sync_broadcast_en = of_property_read_bool(of_node,
			"qcom,cmd-sync-wait-broadcast");

	panel->lp11_init = of_property_read_bool(of_node,
			"qcom,mdss-dsi-lp11-init");
	return 0;
}

@@ -3746,14 +3749,6 @@ int dsi_panel_unprepare(struct dsi_panel *panel)
		goto error;
	}

	if (panel->lp11_init) {
		rc = dsi_panel_power_off(panel);
		if (rc) {
			pr_err("[%s] panel power_Off failed, rc=%d\n",
			       panel->name, rc);
			goto error;
		}
	}
error:
	mutex_unlock(&panel->panel_lock);
	return rc;
@@ -3773,14 +3768,12 @@ int dsi_panel_post_unprepare(struct dsi_panel *panel)

	mutex_lock(&panel->panel_lock);

	if (!panel->lp11_init) {
	rc = dsi_panel_power_off(panel);
	if (rc) {
		pr_err("[%s] panel power_Off failed, rc=%d\n",
		       panel->name, rc);
		goto error;
	}
	}
error:
	mutex_unlock(&panel->panel_lock);
	return rc;