drm/amd/display: Allow PSR exit when panel is disconnected
authorIswara Nagulendran <Iswara.Nagulendran@amd.com>
Mon, 19 Sep 2022 19:53:56 +0000 (15:53 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 6 Oct 2022 15:59:56 +0000 (11:59 -0400)
[HOW&WHY]
Fixed check to only avoid PSR entry when panel
is disconnected. PSR exit can be permitted to restore
the HW to it's non-PSR state.

Reviewed-by: Jayendran Ramani <Jayendran.Ramani@amd.com>
Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Iswara Nagulendran <Iswara.Nagulendran@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c

index 3d19fb92333be3544049a262d98de187045cfb99..895c6e6bfeb84390b859a0be863dcee03ba20718 100644 (file)
@@ -3143,7 +3143,7 @@ bool dc_link_set_psr_allow_active(struct dc_link *link, const bool *allow_active
        if (!dc_get_edp_link_panel_inst(dc, link, &panel_inst))
                return false;
 
-       if (allow_active && link->type == dc_connection_none) {
+       if ((allow_active != NULL) && (*allow_active == true) && (link->type == dc_connection_none)) {
                // Don't enter PSR if panel is not connected
                return false;
        }