Skip to content

Commit 3b7c597

Browse files
kleinermalexdeucher
authored andcommitted
drm/amd/display: Reorder detect_edp_sink_caps before link settings read.
read_current_link_settings_on_detect() on eDP 1.4+ may use the edp_supported_link_rates table which is set up by detect_edp_sink_caps(), so that function needs to be called first. Reviewed-by: Harry Wentland <[email protected]> Signed-off-by: Mario Kleiner <[email protected]> Cc: Martin Leung <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected]
1 parent f2360e3 commit 3b7c597

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/display/dc/core/dc_link.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,8 +817,8 @@ static bool dc_link_detect_helper(struct dc_link *link,
817817
}
818818

819819
case SIGNAL_TYPE_EDP: {
820-
read_current_link_settings_on_detect(link);
821820
detect_edp_sink_caps(link);
821+
read_current_link_settings_on_detect(link);
822822
sink_caps.transaction_type = DDC_TRANSACTION_TYPE_I2C_OVER_AUX;
823823
sink_caps.signal = SIGNAL_TYPE_EDP;
824824
break;

0 commit comments

Comments
 (0)