drm/amd/display: Skip SST ACT polling when sink_count is 0
authorGeorge Shen <george.shen@amd.com>
Tue, 19 Mar 2024 00:31:26 +0000 (20:31 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 30 Apr 2024 13:46:23 +0000 (09:46 -0400)
commitb01d98caba5dabf94721ff1c807ce2470bd1354c
treebfc6dd46e6872b9805f248b9d5d4a255f2f360f0
parent8acb83689258a606a43940191156ed1b24733a94
drm/amd/display: Skip SST ACT polling when sink_count is 0

[Why]
Upon disconnecting a UHBR SST display, the disconnection and the
SetTimings to disable the display can occur such that link_set_dpms_off
occurs after the disconnection has already processed
(link->type is dc_connection_none). Thus, the AUX related
operations should be skipped when clearing the payload allocation table.

Reviewed-by: Wenjing Liu <wenjing.liu@amd.com>
Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: George Shen <george.shen@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/link/link_dpms.c