drm/amd/display: Fix issue with link_active state not correct for MST
authorAnthony Koo <Anthony.Koo@amd.com>
Fri, 8 Feb 2019 01:38:34 +0000 (20:38 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Feb 2019 03:11:36 +0000 (22:11 -0500)
commit293b9160839fb6965fd0f58e6f66217193174538
treecd769ca5766acda6b89d216fa6f866a6abb6a93f
parentdcd5fb82ffb484124203aa339733663ac0b059f3
drm/amd/display: Fix issue with link_active state not correct for MST

[Why]
For MST, link not disabled until all streams disabled

[How]
Add check for stream_count before setting link_active = false for MST

Signed-off-by: Anthony Koo <Anthony.Koo@amd.com>
Reviewed-by: Wenjing Liu <Wenjing.Liu@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c