aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dc_link.h
diff options
context:
space:
mode:
authorAnthony Koo <Anthony.Koo@amd.com>2019-01-20 01:32:55 -0500
committerAlex Deucher <alexander.deucher@amd.com>2019-02-06 13:30:59 -0500
commitff582b61466f14d61f3a2a54c3d673d85bcb3c76 (patch)
tree40b73210fb2d2ebd5c0fbe83891a24af52c65965 /drivers/gpu/drm/amd/display/dc/dc_link.h
parentdrm/amd/display: refactor out programming of vupdate interrupt (diff)
downloadlinux-dev-ff582b61466f14d61f3a2a54c3d673d85bcb3c76.tar.xz
linux-dev-ff582b61466f14d61f3a2a54c3d673d85bcb3c76.zip
drm/amd/display: add way to determine if link is active
[Why] Need to understand whether link is active aside from stream state. This could be used to check what links are enabled by GOP. [How] Store link_active state in link status and initialize it by checking if the DIG is enabled. Keep it updated on every link enable and disable Signed-off-by: Anthony Koo <Anthony.Koo@amd.com> Reviewed-by: Aric Cyr <Aric.Cyr@amd.com> Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dc_link.h')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dc_link.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dc_link.h b/drivers/gpu/drm/amd/display/dc/dc_link.h
index d26bbda61ad2..8fc223defed4 100644
--- a/drivers/gpu/drm/amd/display/dc/dc_link.h
+++ b/drivers/gpu/drm/amd/display/dc/dc_link.h
@@ -30,6 +30,7 @@
#include "grph_object_defs.h"
struct dc_link_status {
+ bool link_active;
struct dpcd_caps *dpcd_caps;
};