diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link.c b/drivers/gpu/drm/amd/display/dc/core/dc_link.c index b2c8b572d57f4c33e770ec0a52981f6ff132ee71..fed38fbab452acdfeacddd900be67a843937ded6 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c @@ -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( diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h index a78af1ef13159fa9ccd8283bc9c4dc54c4ff9078..6d918391435a23258d4f18446c5e83afc5d1dbf8 100644 --- a/drivers/gpu/drm/amd/display/dc/dc.h +++ b/drivers/gpu/drm/amd/display/dc/dc.h @@ -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;