]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amd/display: Make DCN35 OTG disable w/a reusable
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Mon, 19 Jan 2026 21:09:50 +0000 (16:09 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 3 Feb 2026 21:39:32 +0000 (16:39 -0500)
The logic for the OTG disable workaround is particularly complex and
should be leveraged going forward instead of reimplementing and
maintaining it for multiple ASIC.

Reviewed-by: Ovidiu Bunea <ovidiu.bunea@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Wayne Lin <wayne.lin@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.h

index 72558cc55a9a532c23c9b4231972604f6a97c398..7abe6811e4dfa799fd5dd3bb986fdb510fc5ebb2 100644 (file)
@@ -186,7 +186,7 @@ static int dcn35_get_active_display_cnt_wa(
 
        return display_count;
 }
-static void dcn35_disable_otg_wa(struct clk_mgr *clk_mgr_base, struct dc_state *context,
+void dcn35_disable_otg_wa(struct clk_mgr *clk_mgr_base, struct dc_state *context,
                bool safe_to_lower, bool disable)
 {
        struct dc *dc = clk_mgr_base->ctx->dc;
index a12a9bf90806edf9ddaeccd3423e563cd0955793..83e2263563fe015f9fc8abea8384a8298768fdfe 100644 (file)
@@ -64,4 +64,10 @@ void dcn351_clk_mgr_construct(struct dc_context *ctx,
                struct clk_mgr_dcn35 *clk_mgr,
                struct pp_smu_funcs *pp_smu,
                struct dccg *dccg);
+
+void dcn35_disable_otg_wa(struct clk_mgr *clk_mgr_base,
+               struct dc_state *context,
+               bool safe_to_lower,
+               bool disable);
+
 #endif //__DCN35_CLK_MGR_H__