summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/link
diff options
context:
space:
mode:
authorClay King <clayking@amd.com>2026-02-27 12:34:34 -0500
committerAlex Deucher <alexander.deucher@amd.com>2026-03-11 13:58:06 -0400
commit8c993dad415191e76169ca4b42eb00a8f8f7865a (patch)
treefcaa0577368431000f0c1647082e6ca9acbd7306 /drivers/gpu/drm/amd/display/dc/link
parent41a5b6239fe8d437927d03f56816c7f167ac30dc (diff)
drm/amd/display: Clean up unused code
[WHAT] Silence warning by cleaning up unused code. Reviewed-by: Dillon Varone <dillon.varone@amd.com> Signed-off-by: Clay King <clayking@amd.com> Signed-off-by: Alex Hung <alex.hung@amd.com> Tested-by: Dan Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/link')
-rw-r--r--drivers/gpu/drm/amd/display/dc/link/link_detection.c12
-rw-r--r--drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c2
2 files changed, 1 insertions, 13 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/link/link_detection.c b/drivers/gpu/drm/amd/display/dc/link/link_detection.c
index d0bb26888f4b..f992c2d16748 100644
--- a/drivers/gpu/drm/amd/display/dc/link/link_detection.c
+++ b/drivers/gpu/drm/amd/display/dc/link/link_detection.c
@@ -352,7 +352,7 @@ static void query_dp_dual_mode_adaptor(
*dongle = DISPLAY_DONGLE_DP_DVI_DONGLE;
sink_cap->max_hdmi_pixel_clock = DP_ADAPTOR_DVI_MAX_TMDS_CLK;
- CONN_DATA_DETECT(ddc->link, type2_dongle_buf, sizeof(type2_dongle_buf),
+ CONN_DATA_DETECT(link, type2_dongle_buf, sizeof(type2_dongle_buf),
"DP-DVI passive dongle %dMhz: ",
DP_ADAPTOR_DVI_MAX_TMDS_CLK / 1000);
return;
@@ -657,8 +657,6 @@ static bool wait_for_entering_dp_alt_mode(struct dc_link *link)
unsigned long long time_taken_in_ns;
int tries_taken;
- DC_LOGGER_INIT(link->ctx->logger);
-
/**
* this function will only exist if we are on dcn21 (is_in_alt_mode is a
* function pointer, so checking to see if it is equal to 0 is the same
@@ -729,8 +727,6 @@ static void revert_dpia_mst_dsc_always_on_wa(struct dc_link *link)
static bool discover_dp_mst_topology(struct dc_link *link, enum dc_detect_reason reason)
{
- DC_LOGGER_INIT(link->ctx->logger);
-
LINK_INFO("link=%d, mst branch is now Connected\n",
link->link_index);
@@ -750,8 +746,6 @@ static bool discover_dp_mst_topology(struct dc_link *link, enum dc_detect_reason
bool link_reset_cur_dp_mst_topology(struct dc_link *link)
{
- DC_LOGGER_INIT(link->ctx->logger);
-
LINK_INFO("link=%d, mst branch is now Disconnected\n",
link->link_index);
@@ -977,8 +971,6 @@ static bool detect_link_and_local_sink(struct dc_link *link,
enum dc_connection_type new_connection_type = dc_connection_none;
const uint32_t post_oui_delay = 30; // 30ms
- DC_LOGGER_INIT(link->ctx->logger);
-
if (dc_is_virtual_signal(link->connector_signal))
return false;
@@ -1459,8 +1451,6 @@ bool link_detect(struct dc_link *link, enum dc_detect_reason reason)
bool is_delegated_to_mst_top_mgr = false;
enum dc_connection_type pre_link_type = link->type;
- DC_LOGGER_INIT(link->ctx->logger);
-
is_local_sink_detect_success = detect_link_and_local_sink(link, reason);
if (is_local_sink_detect_success && link->local_sink)
diff --git a/drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c b/drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c
index 5b2c1a4911cf..ba311a8f3f65 100644
--- a/drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c
+++ b/drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c
@@ -1094,8 +1094,6 @@ bool edp_send_replay_cmd(struct dc_link *link,
if (!replay)
return false;
- DC_LOGGER_INIT(link->ctx->logger);
-
if (dp_pr_get_panel_inst(dc, link, &panel_inst))
cmd_data->panel_inst = panel_inst;
else {