drm/amd/display: fix the clock source contruct for dcn315
authorCharlene Liu <charlene.liu@amd.com>
Wed, 23 Feb 2022 05:11:33 +0000 (00:11 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Mar 2022 18:25:15 +0000 (14:25 -0400)
[why]
Driver sends invalid deep color ratio to DMUB. Update it to the right
one by using another clock source construct.

Reviewed-by: Hansen Dsouza <hansen.dsouza@amd.com>
Acked-by: Alan Liu <HaoPing.Liu@amd.com>
Signed-off-by: Charlene Liu <charlene.liu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn315/dcn315_resource.c

index 9a035e5..d161b81 100644 (file)
@@ -1760,7 +1760,7 @@ static struct clock_source *dcn31_clock_source_create(
        if (!clk_src)
                return NULL;
 
-       if (dcn3_clk_src_construct(clk_src, ctx, bios, id,
+       if (dcn31_clk_src_construct(clk_src, ctx, bios, id,
                        regs, &cs_shift, &cs_mask)) {
                clk_src->base.dp_clk_src = dp_clk_src;
                return &clk_src->base;