]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amd/display: Expose function reset_cur_dp_mst_topology
authorWayne Lin <Wayne.Lin@amd.com>
Wed, 22 Jun 2022 02:59:01 +0000 (10:59 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Jul 2022 20:04:30 +0000 (16:04 -0400)
[Why & How]
Need to leverage this function out of dc_link.c. Change it to public.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: Hersen Wu <hersenxs.wu@amd.com>
Acked-by: Alan Liu <HaoPing.Liu@amd.com>
Signed-off-by: Wayne Lin <Wayne.Lin@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c
drivers/gpu/drm/amd/display/dc/dc_link.h

index 858ee51f930aeae9ff18d1be6ed19d7500fa0d0a..ef54b96affa8aa915227a3c5413294c625e97a0f 100644 (file)
@@ -845,7 +845,7 @@ static bool discover_dp_mst_topology(struct dc_link *link, enum dc_detect_reason
        return link->type == dc_connection_mst_branch;
 }
 
-static bool reset_cur_dp_mst_topology(struct dc_link *link)
+bool reset_cur_dp_mst_topology(struct dc_link *link)
 {
        bool result = false;
        DC_LOGGER_INIT(link->ctx->logger);
index 023774b94da34a2fc9ce724afcfdfb21cf8b85f9..a0af0f6afeef858fcbc74085708c608b4e2026e9 100644 (file)
@@ -514,4 +514,7 @@ bool dc_dp_trace_is_logged(struct dc_link *link,
 struct dp_trace_lt_counts *dc_dp_trace_get_lt_counts(struct dc_link *link,
                bool in_detection);
 unsigned int dc_dp_trace_get_link_loss_count(struct dc_link *link);
+
+/* Destruct the mst topology of the link and reset the allocated payload table */
+bool reset_cur_dp_mst_topology(struct dc_link *link);
 #endif /* DC_LINK_H_ */