]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amd/display: fix bug in the logic for panel power control
authorAnthony Koo <Anthony.Koo@amd.com>
Fri, 17 Apr 2020 22:26:47 +0000 (18:26 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 22 Apr 2020 22:11:48 +0000 (18:11 -0400)
commitffadb9d6520843500d848f5f882ae74cc1aa11ce
tree36b02efe9ac5df56ca85fb1e89aa496c1ee240c5
parenta42c1ed50aafc29efa54ddb0524c86b1697ff13a
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>
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c