From ef347b3b80c2f973140553db41224f886ef3b9da Mon Sep 17 00:00:00 2001 From: John Wu Date: Wed, 12 Jul 2017 14:25:52 +0800 Subject: [PATCH] drm/amd/display: Fix eDP power isn't off when lid close Signed-off-by: John Wu Reviewed-by: Tony Cheng Acked-by: Harry Wentland Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c index 4f46ff14fb69..0092e70b9efd 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c @@ -112,8 +112,10 @@ void dp_disable_link_phy(struct core_link *link, enum signal_type signal) if (!link->wa_flags.dp_keep_receiver_powered) dp_receiver_power_ctrl(link, false); - if (signal == SIGNAL_TYPE_EDP) + 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); + } link->link_enc->funcs->disable_output(link->link_enc, signal);