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

Commit fc3be600 authored by Sai Srujana Oruganti's avatar Sai Srujana Oruganti Committed by Gerrit - the friendly Code Review server
Browse files

disp: msm: add skip panel power off dt property



This property skips the panel power off for panels
with in-cell design.

Change-Id: I61ff7b8696940b74a58c79eef5b9cd43fd551c01
Signed-off-by: default avatarSai Srujana Oruganti <quic_osaisruj@quicinc.com>
parent 0bd399fd
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -379,7 +379,7 @@ static int dsi_panel_power_off(struct dsi_panel *panel)
{
	int rc = 0;

	if (panel->is_twm_en) {
	if (panel->is_twm_en || panel->skip_panel_off) {
		DSI_DEBUG("TWM Enabled, skip panel power off\n");
		return rc;
	}
@@ -2085,6 +2085,9 @@ static int dsi_panel_parse_misc_features(struct dsi_panel *panel)
	panel->reset_gpio_always_on = utils->read_bool(utils->data,
			"qcom,platform-reset-gpio-always-on");

	panel->skip_panel_off = utils->read_bool(utils->data,
			"qcom,skip-panel-power-off");

	panel->spr_info.enable = false;
	panel->spr_info.pack_type = MSM_DISPLAY_SPR_TYPE_MAX;

+1 −0
Original line number Diff line number Diff line
@@ -245,6 +245,7 @@ struct dsi_panel {
	atomic_t esd_recovery_pending;

	bool is_twm_en;
	bool skip_panel_off;
	bool panel_initialized;
	bool te_using_watchdog_timer;
	struct dsi_qsync_capabilities qsync_caps;