1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00

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>
This commit is contained in:
Anthony Koo 2020-04-17 18:26:47 -04:00 committed by Alex Deucher
parent a42c1ed50a
commit ffadb9d652

View file

@ -796,7 +796,7 @@ void dce110_edp_power_control(
return;
}
if (link->panel_cntl)
if (!link->panel_cntl)
return;
if (power_up !=