drm/amd/display: Don't overwrite dce60_clk_mgr
authorTimur Kristóf <timur.kristof@gmail.com>
Tue, 22 Jul 2025 15:58:29 +0000 (17:58 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Aug 2025 19:39:21 +0000 (15:39 -0400)
dc_clk_mgr_create accidentally overwrites the dce60_clk_mgr
with the dce_clk_mgr, causing incorrect behaviour on DCE6.
Fix it by removing the extra dce_clk_mgr_construct.

Fixes: 62eab49faae7 ("drm/amd/display: hide VGH asic specific structs")
Reviewed-by: Rodrigo Siqueira <siqueira@igalia.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit bbddcbe36a686af03e91341b9bbfcca94bd45fb6)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c

index 33b9d36619ff8bd54e7777452e4ec3978010bf91..4071851f9e86d55b0e3c4d4c5b7d62adc327afa9 100644 (file)
@@ -158,7 +158,6 @@ struct clk_mgr *dc_clk_mgr_create(struct dc_context *ctx, struct pp_smu_funcs *p
                        return NULL;
                }
                dce60_clk_mgr_construct(ctx, clk_mgr);
-               dce_clk_mgr_construct(ctx, clk_mgr);
                return &clk_mgr->base;
        }
 #endif