drm/amd/display: Fix for link encoder access for MST.
authorMeenakshikumar Somasundaram <meenakshikumar.somasundaram@amd.com>
Thu, 2 Sep 2021 18:09:30 +0000 (14:09 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Sep 2021 13:30:11 +0000 (09:30 -0400)
commite3ab29aa8c680f31ad1a53a0a1b3a54367dd473d
treefc92f559a18ee5b24fffbec65b26b0dc9f399670
parentf6e54f0643fbdf335fcace4dcfd85581e52d9edb
drm/amd/display: Fix for link encoder access for MST.

[Why]
Link encoder in the link could be null for certain links.

[How]
If link encoder in the link is null then get the link encoder
from the stream.

Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Anson Jacob <Anson.Jacob@amd.com>
Signed-off-by: Meenakshikumar Somasundaram <meenakshikumar.somasundaram@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c