drm/amd/display: Fix eDP panel light-up

Power-down panel on disale only if sink exists
 otherwise it fails edid read during init sequence

Signed-off-by: Roman Li <Roman.Li@amd.com>
Reviewed-by: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Roman Li 2017-07-25 14:50:44 -04:00 committed by Alex Deucher
parent 4017fcdf58
commit 48841a20fc

View File

@ -114,7 +114,9 @@ void dp_disable_link_phy(struct dc_link *link, enum signal_type signal)
if (signal == SIGNAL_TYPE_EDP) {
link->link_enc->funcs->backlight_control(link->link_enc, false);
link->link_enc->funcs->power_control(link->link_enc, false);
if (link->dpcd_sink_count)
link->link_enc->funcs->power_control(link->link_enc,
false);
}
link->link_enc->funcs->disable_output(link->link_enc, signal);