drm/amd/display: rename perform_link_training_int function
authorWenjing Liu <wenjing.liu@amd.com>
Mon, 3 May 2021 21:32:05 +0000 (17:32 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 20 May 2021 02:39:10 +0000 (22:39 -0400)
[why]
The function's name doesn't represent what it actaully does.
The function implements necessary steps for our hardware to
transition from link training mode back to video idle mode.
Therefore, rename the function as dp_transition_to_video_idle
so everyone can understand it.

Signed-off-by: Wenjing Liu <wenjing.liu@amd.com>
Reviewed-by: George Shen <George.Shen@amd.com>
Acked-by: Stylon Wang <stylon.wang@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c

index 4c142e2..d461df1 100644 (file)
@@ -1157,7 +1157,7 @@ static enum link_training_result perform_clock_recovery_sequence(
        return get_cr_failure(lane_count, dpcd_lane_status);
 }
 
-static inline enum link_training_result perform_link_training_int(
+static inline enum link_training_result dp_transition_to_video_idle(
        struct dc_link *link,
        struct link_training_settings *lt_settings,
        enum link_training_result status)
@@ -1665,7 +1665,7 @@ enum link_training_result dc_link_dp_perform_link_training(
        /* 3. set training not in progress*/
        dpcd_set_training_pattern(link, DP_TRAINING_PATTERN_VIDEOIDLE);
        if ((status == LINK_TRAINING_SUCCESS) || !skip_video_pattern) {
-               status = perform_link_training_int(link,
+               status = dp_transition_to_video_idle(link,
                                &lt_settings,
                                status);
        }