Commit 75cb8911 authored by Yi-Ling Chen's avatar Yi-Ling Chen Committed by Alex Deucher

drm/amd/display: Fixed using wrong eDP power sequence function pointer

[why]
dc->hwss->edp_backlight_control is null, it would casue it only be off
main-link of eDP.  It is not worng behavior for eDP power sequence off.

[how]
Must use hwseq->funcs.edp_backlight_control finction pointer for edp
backlight.
Signed-off-by: default avatarYi-Ling Chen <Yi-Ling.Chen2@amd.com>
Reviewed-by: default avatarSung Lee <Sung.Lee@amd.com>
Acked-by: default avatarRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 03ca9600
...@@ -1394,10 +1394,10 @@ void dcn10_init_hw(struct dc *dc) ...@@ -1394,10 +1394,10 @@ void dcn10_init_hw(struct dc *dc)
if (edp_link && if (edp_link &&
edp_link->link_enc->funcs->is_dig_enabled && edp_link->link_enc->funcs->is_dig_enabled &&
edp_link->link_enc->funcs->is_dig_enabled(edp_link->link_enc) && edp_link->link_enc->funcs->is_dig_enabled(edp_link->link_enc) &&
dc->hwss.edp_backlight_control && dc->hwseq->funcs.edp_backlight_control &&
dc->hwss.power_down && dc->hwss.power_down &&
dc->hwss.edp_power_control) { dc->hwss.edp_power_control) {
dc->hwss.edp_backlight_control(edp_link, false); dc->hwseq->funcs.edp_backlight_control(edp_link, false);
dc->hwss.power_down(dc); dc->hwss.power_down(dc);
dc->hwss.edp_power_control(edp_link, false); dc->hwss.edp_power_control(edp_link, false);
} else { } else {
......
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