drm/amd/display: Save hpd_src for dc_link
authorZeyu Fan <Zeyu.Fan@amd.com>
Tue, 13 Jun 2017 15:54:10 +0000 (11:54 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 22:08:03 +0000 (18:08 -0400)
Signed-off-by: Zeyu Fan <Zeyu.Fan@amd.com>
Reviewed-by: Charlene Liu <Charlene.Liu@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.c
drivers/gpu/drm/amd/display/dc/dc.h

index b2c8b572d57f4c33e770ec0a52981f6ff132ee71..fed38fbab452acdfeacddd900be67a843937ded6 100644 (file)
@@ -987,6 +987,9 @@ static bool construct(
        enc_init_data.connector = link->link_id;
        enc_init_data.channel = get_ddc_line(link);
        enc_init_data.hpd_source = get_hpd_line(link);
+
+       link->public.hpd_src = enc_init_data.hpd_source;
+
        enc_init_data.transmitter =
                        translate_encoder_to_transmitter(enc_init_data.encoder);
        link->link_enc = link->dc->res_pool->funcs->link_enc_create(
index a78af1ef13159fa9ccd8283bc9c4dc54c4ff9078..6d918391435a23258d4f18446c5e83afc5d1dbf8 100644 (file)
@@ -658,6 +658,9 @@ struct dc_link {
        struct dc_lane_settings cur_lane_setting;
 
        uint8_t ddc_hw_inst;
+
+       uint8_t hpd_src;
+
        uint8_t link_enc_hw_inst;
 
        bool test_pattern_enabled;