OSDN Git Service

drm/amd/display: Use the maximum link setting which EDP reported.
authorHugo Hu <hugo.hu@amd.com>
Thu, 7 Dec 2017 07:33:22 +0000 (15:33 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Dec 2017 19:47:25 +0000 (14:47 -0500)
Signed-off-by: Hugo Hu <hugo.hu@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c

index 00528b2..61e8c3e 100644 (file)
@@ -1470,6 +1470,12 @@ void decide_link_settings(struct dc_stream_state *stream,
                return;
        }
 
+       /* EDP use the link cap setting */
+       if (stream->sink->sink_signal == SIGNAL_TYPE_EDP) {
+               *link_setting = link->verified_link_cap;
+               return;
+       }
+
        /* search for the minimum link setting that:
         * 1. is supported according to the link training result
         * 2. could support the b/w requested by the timing