]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
drm/amd/display: Remove unnecessary warning
authorMikita Lipski <mikita.lipski@amd.com>
Wed, 4 Jul 2018 15:19:53 +0000 (11:19 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 24 Jul 2018 20:15:02 +0000 (15:15 -0500)
[why]
The warning message floods the dmesg log on Tonga even
though it is expected to have a pix_clk set to zero,
when the pipe is not active.
[how]
remove the assert

Signed-off-by: Mikita Lipski <mikita.lipski@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce100/dce100_hw_sequencer.c

index ec3221333011be4f0f2922b139282f969aea98fd..74c05e8788073433895536f856ae451e77a37fe8 100644 (file)
@@ -149,10 +149,6 @@ static uint32_t get_max_pixel_clock_for_all_paths(
                        max_pix_clk =
                                pipe_ctx->stream_res.pix_clk_params.requested_pix_clk;
        }
-
-       if (max_pix_clk == 0)
-               ASSERT(0);
-
        return max_pix_clk;
 }