@@ -243,7 +243,7 @@ void dp_disable_link_phy(struct dc_link *link, const struct link_resource *link_
243243 struct dc * dc = link -> ctx -> dc ;
244244 struct dmcu * dmcu = dc -> res_pool -> dmcu ;
245245#if defined(CONFIG_DRM_AMD_DC_DCN )
246- struct hpo_dp_link_encoder * hpo_link_enc = link -> hpo_dp_link_enc ;
246+ struct hpo_dp_link_encoder * hpo_link_enc = link_res -> hpo_dp_link_enc ;
247247#endif
248248 struct link_encoder * link_enc ;
249249
@@ -366,8 +366,8 @@ void dp_set_hw_lane_settings(
366366#if defined(CONFIG_DRM_AMD_DC_DCN )
367367 if (dp_get_link_encoding_format (& link_settings -> link_settings ) ==
368368 DP_128b_132b_ENCODING ) {
369- link -> hpo_dp_link_enc -> funcs -> set_ffe (
370- link -> hpo_dp_link_enc ,
369+ link_res -> hpo_dp_link_enc -> funcs -> set_ffe (
370+ link_res -> hpo_dp_link_enc ,
371371 & link_settings -> link_settings ,
372372 link_settings -> lane_settings [0 ].FFE_PRESET .raw );
373373 } else if (dp_get_link_encoding_format (& link_settings -> link_settings )
@@ -412,8 +412,8 @@ void dp_set_hw_test_pattern(
412412#if defined(CONFIG_DRM_AMD_DC_DCN )
413413 switch (link_encoding_format ) {
414414 case DP_128b_132b_ENCODING :
415- link -> hpo_dp_link_enc -> funcs -> set_link_test_pattern (
416- link -> hpo_dp_link_enc , & pattern_param );
415+ link_res -> hpo_dp_link_enc -> funcs -> set_link_test_pattern (
416+ link_res -> hpo_dp_link_enc , & pattern_param );
417417 break ;
418418 case DP_8b_10b_ENCODING :
419419 ASSERT (encoder );
@@ -797,8 +797,8 @@ void enable_dp_hpo_output(struct dc_link *link,
797797 }
798798 } else {
799799 /* DP2.0 HW: call transmitter control to enable PHY */
800- link -> hpo_dp_link_enc -> funcs -> enable_link_phy (
801- link -> hpo_dp_link_enc ,
800+ link_res -> hpo_dp_link_enc -> funcs -> enable_link_phy (
801+ link_res -> hpo_dp_link_enc ,
802802 link_settings ,
803803 link -> link_enc -> transmitter );
804804 }
@@ -814,11 +814,11 @@ void enable_dp_hpo_output(struct dc_link *link,
814814 phyd32clk = get_phyd32clk_src (link );
815815 dc -> res_pool -> dccg -> funcs -> enable_symclk32_le (
816816 dc -> res_pool -> dccg ,
817- link -> hpo_dp_link_enc -> inst ,
817+ link_res -> hpo_dp_link_enc -> inst ,
818818 phyd32clk );
819- link -> hpo_dp_link_enc -> funcs -> link_enable (
820- link -> hpo_dp_link_enc ,
821- link_settings -> lane_count );
819+ link_res -> hpo_dp_link_enc -> funcs -> link_enable (
820+ link_res -> hpo_dp_link_enc ,
821+ link_settings -> lane_count );
822822 }
823823}
824824
@@ -828,12 +828,12 @@ void disable_dp_hpo_output(struct dc_link *link,
828828{
829829 const struct dc * dc = link -> dc ;
830830
831- link -> hpo_dp_link_enc -> funcs -> link_disable (link -> hpo_dp_link_enc );
831+ link_res -> hpo_dp_link_enc -> funcs -> link_disable (link_res -> hpo_dp_link_enc );
832832
833833 if (IS_FPGA_MAXIMUS_DC (dc -> ctx -> dce_environment )) {
834834 dc -> res_pool -> dccg -> funcs -> disable_symclk32_le (
835835 dc -> res_pool -> dccg ,
836- link -> hpo_dp_link_enc -> inst );
836+ link_res -> hpo_dp_link_enc -> inst );
837837
838838 dc -> res_pool -> dccg -> funcs -> set_physymclk (
839839 dc -> res_pool -> dccg ,
@@ -844,8 +844,8 @@ void disable_dp_hpo_output(struct dc_link *link,
844844 dm_set_phyd32clk (dc -> ctx , 0 );
845845 } else {
846846 /* DP2.0 HW: call transmitter control to disable PHY */
847- link -> hpo_dp_link_enc -> funcs -> disable_link_phy (
848- link -> hpo_dp_link_enc ,
847+ link_res -> hpo_dp_link_enc -> funcs -> disable_link_phy (
848+ link_res -> hpo_dp_link_enc ,
849849 signal );
850850 }
851851}
0 commit comments