drm/amd/display: ensure PSR force_static flag can always be set
[HOW&WHY] Make sure psr_force_static() can always be called regardless of psr_allow_active value. Reviewed-by: Harry Vanzylldejong <harry.vanzylldejong@amd.com> Reviewed-by: Evgenii Krasnikov <Evgenii.Krasnikov@amd.com> Reviewed-by: Nicholas Choi <Nicholas.Choi@amd.com> Acked-by: Pavle Kotarac <Pavle.Kotarac@amd.com> Signed-off-by: Evgenii Krasnikov <Evgenii.Krasnikov@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
da8c25929b
commit
aa4be41617
@ -3092,6 +3092,10 @@ bool dc_link_set_psr_allow_active(struct dc_link *link, const bool *allow_active
|
||||
psr->funcs->psr_set_power_opt(psr, link->psr_settings.psr_power_opt, panel_inst);
|
||||
}
|
||||
|
||||
if (psr != NULL && link->psr_settings.psr_feature_enabled &&
|
||||
force_static && psr->funcs->psr_force_static)
|
||||
psr->funcs->psr_force_static(psr, panel_inst);
|
||||
|
||||
/* Enable or Disable PSR */
|
||||
if (allow_active && link->psr_settings.psr_allow_active != *allow_active) {
|
||||
link->psr_settings.psr_allow_active = *allow_active;
|
||||
@ -3102,8 +3106,6 @@ bool dc_link_set_psr_allow_active(struct dc_link *link, const bool *allow_active
|
||||
#endif
|
||||
|
||||
if (psr != NULL && link->psr_settings.psr_feature_enabled) {
|
||||
if (force_static && psr->funcs->psr_force_static)
|
||||
psr->funcs->psr_force_static(psr, panel_inst);
|
||||
psr->funcs->psr_enable(psr, link->psr_settings.psr_allow_active, wait, panel_inst);
|
||||
} else if ((dmcu != NULL && dmcu->funcs->is_dmcu_initialized(dmcu)) &&
|
||||
link->psr_settings.psr_feature_enabled)
|
||||
|
Loading…
Reference in New Issue
Block a user