drm/amd/display: add way to determine if link is active
authorAnthony Koo <Anthony.Koo@amd.com>
Sun, 20 Jan 2019 06:32:55 +0000 (01:32 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Feb 2019 18:30:59 +0000 (13:30 -0500)
commitff582b61466f14d61f3a2a54c3d673d85bcb3c76
tree40b73210fb2d2ebd5c0fbe83891a24af52c65965
parenta122b62d8ac484091c536ad04e1d0ea156ae6de7
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>
drivers/gpu/drm/amd/display/dc/core/dc_link.c
drivers/gpu/drm/amd/display/dc/dc_link.h
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c