summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/dce110
diff options
context:
space:
mode:
authorAnthony Koo <Anthony.Koo@amd.com>2020-04-18 01:26:47 +0300
committerAlex Deucher <alexander.deucher@amd.com>2020-04-23 01:11:48 +0300
commitffadb9d6520843500d848f5f882ae74cc1aa11ce (patch)
tree36b02efe9ac5df56ca85fb1e89aa496c1ee240c5 /drivers/gpu/drm/amd/display/dc/dce110
parenta42c1ed50aafc29efa54ddb0524c86b1697ff13a (diff)
downloadlinux-ffadb9d6520843500d848f5f882ae74cc1aa11ce.tar.xz
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 <Anthony.Koo@amd.com> Reviewed-by: Ashley Thomas <Ashley.Thomas2@amd.com> Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dce110')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c2
1 files changed, 1 insertions, 1 deletions
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 7d4cb7fd31a7..9cd130c8894a 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 !=