drm/amd/display: Update hook dcn32_funcs
authorRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Tue, 14 Jun 2022 14:11:47 +0000 (10:11 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 21 Jun 2022 22:17:24 +0000 (18:17 -0400)
In DCN32 clk hook functions, we are using the wrong reference for
get_dp_ref_clk_frequency and missing the get_dtb_ref_clk_frequency
reference. This commit adds those references.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c

index b31adf5..113f93b 100644 (file)
@@ -768,7 +768,8 @@ static bool dcn32_is_smu_present(struct clk_mgr *clk_mgr_base)
 
 
 static struct clk_mgr_funcs dcn32_funcs = {
-               .get_dp_ref_clk_frequency = dcn31_get_dtb_ref_freq_khz,
+               .get_dp_ref_clk_frequency = dce12_get_dp_ref_freq_khz,
+               .get_dtb_ref_clk_frequency = dcn31_get_dtb_ref_freq_khz,
                .update_clocks = dcn32_update_clocks,
                .dump_clk_registers = dcn32_dump_clk_registers,
                .init_clocks = dcn32_init_clocks,