From 9799624ac236eb238b5a5c885c759b1cbcac6349 Mon Sep 17 00:00:00 2001 From: Wenjing Liu Date: Tue, 15 Aug 2017 19:10:14 -0400 Subject: [PATCH] drm/amd/display: Cache edp config in dc link Signed-off-by: Wenjing Liu Reviewed-by: Tony Cheng Acked-by: Harry Wentland Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 2 ++ drivers/gpu/drm/amd/display/dc/dc.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c index 0144c98fd0d5..d621237e923e 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c @@ -2258,6 +2258,8 @@ static void retrieve_link_cap(struct dc_link *link) DP_EDP_CONFIGURATION_CAP - DP_DPCD_REV]; link->dpcd_caps.panel_mode_edp = edp_config_cap.bits.ALT_SCRAMBLER_RESET; + link->dpcd_caps.dpcd_display_control_capable = + edp_config_cap.bits.DPCD_DISPLAY_CONTROL_CAPABLE; link->test_pattern_enabled = false; link->compliance_test_state.raw = 0; diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h index 928d2a0501eb..bd8b1ba22df8 100644 --- a/drivers/gpu/drm/amd/display/dc/dc.h +++ b/drivers/gpu/drm/amd/display/dc/dc.h @@ -760,6 +760,7 @@ struct dpcd_caps { bool allow_invalid_MSA_timing_param; bool panel_mode_edp; + bool dpcd_display_control_capable; }; struct dc_link_status { @@ -834,7 +835,6 @@ struct dc_link { struct dpcd_caps dpcd_caps; unsigned short chip_caps; unsigned int dpcd_sink_count; - enum edp_revision edp_revision; bool psr_enabled; -- 2.30.2