disp: msm: sde: fix autorefresh enable/disable sequence

SDE RSCC solver state and autorefresh enable concurrency
is not supported. This change moves the rscc solver state
to disable to avoid concurrency. It also resets the autorefresh
software structure state when encoder is disabled. This allows
autorefresh reconfiguration with next encoder enable.

Change-Id: Idb8c722c823d9f46d3cd03e1b046da69c8d88fc4
Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
This commit is contained in:
Dhaval Patel
2021-04-20 15:14:08 -07:00
committed by Gerrit - the friendly Code Review server
parent 8a3abf2cdf
commit a698dbe5aa
3 changed files with 21 additions and 12 deletions

View File

@@ -1184,10 +1184,7 @@ static bool sde_encoder_phys_cmd_is_autorefresh_enabled(
ret = hw_pp->ops.get_autorefresh(hw_pp, &cfg);
}
if (ret)
return false;
return cfg.enable;
return ret ? false : cfg.enable;
}
static void sde_encoder_phys_cmd_connect_te(
@@ -1308,6 +1305,7 @@ static void sde_encoder_phys_cmd_disable(struct sde_encoder_phys *phys_enc)
phys_enc->hw_intf->ops.reset_counter(phys_enc->hw_intf);
}
memset(&cmd_enc->autorefresh.cfg, 0, sizeof(struct sde_hw_autorefresh));
phys_enc->enable_state = SDE_ENC_DISABLED;
}