drm/amd/display: Disable eDP with a proper sequence.
authorYongqiang Sun <yongqiang.sun@amd.com>
Tue, 19 Dec 2017 16:51:40 +0000 (11:51 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:17:25 +0000 (14:17 -0500)
commit25292028d74b4b13ab512bcac60a5e02e2a48b90
tree981dea0a3d69a53d66da834326d40b6c3b8b1a25
parent34d924f598f362af3b6288f9d9f61c94f2f0f674
drm/amd/display: Disable eDP with a proper sequence.

Proper sequence should be:
disable backlight
dp blank
disable output
edp power off

In enable accelatate mode, all the encoder and controller
are disabled, so move disable eDP to the function is the
easiest way to implement.

Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.h
drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h