Commit 014427ad authored by Sherry's avatar Sherry Committed by Alex Deucher

drm/amd/display: change hw sequence

[Why]
t9 delay func is called twice after setting power off, the unexpected
action results in a doubling of the added 140ms t9 delay

[How]
If the backlight has been turned off, does not turn it off again
Signed-off-by: default avatarSherry <Yao.Wang1@amd.com>
Reviewed-by: default avatarTony Cheng <Tony.Cheng@amd.com>
Acked-by: default avatarRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 2208f39c
...@@ -939,12 +939,15 @@ void dce110_edp_backlight_control( ...@@ -939,12 +939,15 @@ void dce110_edp_backlight_control(
return; return;
} }
if (enable && link->panel_cntl && if (link->panel_cntl) {
link->panel_cntl->funcs->is_panel_backlight_on(link->panel_cntl)) { bool is_backlight_on = link->panel_cntl->funcs->is_panel_backlight_on(link->panel_cntl);
DC_LOG_HW_RESUME_S3(
"%s: panel already powered up. Do nothing.\n", if ((enable && is_backlight_on) || (!enable && !is_backlight_on)) {
DC_LOG_HW_RESUME_S3(
"%s: panel already powered up/off. Do nothing.\n",
__func__); __func__);
return; return;
}
} }
/* Send VBIOS command to control eDP panel backlight */ /* Send VBIOS command to control eDP panel backlight */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment