Merge "disp: msm: add skip panel power off dt property"

This commit is contained in:
qctecmdr 2022-05-08 06:57:24 -07:00 • committed by Gerrit - the friendly Code Review server
commit be3f2e68c9
2 changed files with 5 additions and 1 deletions

View file

@ -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;

View file

@ -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;