drm/amd/display: Drop unnecessary detect link code
authorIan Chen <ian.chen@amd.com>
Mon, 16 May 2022 07:35:34 +0000 (15:35 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 21 Jun 2022 22:17:23 +0000 (18:17 -0400)
Delete unnecessary codes in detect_link_and_local_sink. We already have
correct stop logic in dc_link_detect.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: Wenjing Liu <Wenjing.Liu@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Ian Chen <ian.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c

index 199868925fe48e0e417ef2bc59c657b7c73c90ae..fac27b45230f1d2e1789f656eac09f1936020b24 100644 (file)
@@ -1142,11 +1142,6 @@ static bool detect_link_and_local_sink(struct dc_link *link,
                                        (link->dpcd_caps.dongle_type !=
                                                        DISPLAY_DONGLE_DP_HDMI_CONVERTER))
                                converter_disable_audio = true;
-
-                       // link switch from MST to non-MST stop topology manager
-                       if (pre_connection_type == dc_connection_mst_branch &&
-                                       link->type != dc_connection_mst_branch)
-                               dm_helpers_dp_mst_stop_top_mgr(link->ctx, link);
                        break;
                }