From: Anthony Koo Date: Fri, 17 Apr 2020 22:26:47 +0000 (-0400) Subject: drm/amd/display: fix bug in the logic for panel power control X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ffadb9d6520843500d848f5f882ae74cc1aa11ce;p=linux.git drm/amd/display: fix bug in the logic for panel power control [Why] there's a bug in the new logic for panel power control. the check is wrong, and will skip panel power control under the wrong conditions. [How] fix to check for NULL panel_cntl Signed-off-by: Anthony Koo Reviewed-by: Ashley Thomas Acked-by: Rodrigo Siqueira Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c index 7d4cb7fd31a79..9cd130c8894a5 100644 --- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c +++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c @@ -796,7 +796,7 @@ void dce110_edp_power_control( return; } - if (link->panel_cntl) + if (!link->panel_cntl) return; if (power_up !=