summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhan Liu <zhan.liu@amd.com>2019-09-11 22:43:05 -0400
committerZhan Liu <zhan.liu@amd.com>2019-09-12 11:52:31 -0400
commit7cfd840964e69702e9c7f3f1348debd100650ce8 (patch)
tree87c6d783b2ed6f81957b83681ef8f046a34b7564
parent333418c36287b436bf9e60a295183471885bc3bb (diff)
drm/amd/display: correct dc_link detect on eDP display
[Why] Every time system resume from S3, link->local_sink needs to be checked, or eDP won't light up. [How] Add link->local_sink check for eDP. Signed-off-by: Zhan Liu <zhan.liu@amd.com> Reviewed-by: Roman Li <roman.li@amd.com>
-rw-r--r--drivers/gpu/drm/amd/display/dc/core/dc_link.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link.c b/drivers/gpu/drm/amd/display/dc/core/dc_link.c
index edbfd62ccac9..a36c5dfce441 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c
@@ -694,6 +694,10 @@ bool dc_link_detect(struct dc_link *link, enum dc_detect_reason reason)
return false;
}
+ if (link->connector_signal == SIGNAL_TYPE_EDP &&
+ link->local_sink)
+ return true;
+
if (link->connector_signal == SIGNAL_TYPE_LVDS &&
link->local_sink)
return true;