summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeichen Huang <PeiChen.Huang@amd.com>2026-01-26 06:56:28 +0300
committerAlex Deucher <alexander.deucher@amd.com>2026-02-12 23:08:56 +0300
commit4a9c9882153a31818f25ef860e62d227f106e93f (patch)
tree260da3534c9e8bf462e702bbe21f4694a9378337
parent9156bf442ee56c0f883aa4c81af9c8471eef6846 (diff)
downloadlinux-4a9c9882153a31818f25ef860e62d227f106e93f.tar.xz
drm/amd/display: use enum value for panel replay setting
[WHY & HOW] use enum value for Panel Replay setting. Reviewed-by: Robin Chen <robin.chen@amd.com> Signed-off-by: Peichen Huang <PeiChen.Huang@amd.com> Signed-off-by: Tom Chung <chiahsuan.chung@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_panel_replay.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_panel_replay.c b/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_panel_replay.c
index 4a9e86d32dbb..7e45d1e767bb 100644
--- a/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_panel_replay.c
+++ b/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_panel_replay.c
@@ -333,10 +333,10 @@ bool dp_pr_copy_settings(struct dc_link *link, struct replay_context *replay_con
pipe_ctx->stream->timing.dsc_cfg.num_slices_v;
if (dc_is_embedded_signal(link->connector_signal))
- cmd.pr_copy_settings.data.main_link_activity_option = 0x03;//OPTION_1C;
+ cmd.pr_copy_settings.data.main_link_activity_option = OPTION_1C;
else
// For external DP, use option 1-A
- cmd.pr_copy_settings.data.main_link_activity_option = 0x01;//OPTION_1A;
+ cmd.pr_copy_settings.data.main_link_activity_option = OPTION_1A;
dc_wake_and_execute_dmub_cmd(dc->ctx, &cmd, DM_DMUB_WAIT_TYPE_WAIT);
return true;