From: Zeyu Fan Date: Tue, 13 Jun 2017 15:54:10 +0000 (-0400) Subject: drm/amd/display: Save hpd_src for dc_link X-Git-Tag: v5.15~9960^2~23^2~410 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7a0963345f859058fa866dd28fe13ca5eff22a87;p=platform%2Fkernel%2Flinux-starfive.git drm/amd/display: Save hpd_src for dc_link Signed-off-by: Zeyu Fan Reviewed-by: Charlene Liu Acked-by: Harry Wentland Signed-off-by: Alex Deucher --- 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 b2c8b572..fed38fb 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 a78af1e..6d91839 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;