drm/amd/display: verify stream link before link test
authorJing Zhou <Jing.Zhou@amd.com>
Thu, 22 Aug 2019 06:26:33 +0000 (14:26 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Dec 2019 15:42:35 +0000 (16:42 +0100)
commitc872b45f161513a19809c3c69920ff782d848846
treeabf2311faf3ddaad5c8e8ea7824f0533d806770d
parentcf3c92fa23aae772c65893f3ab99fe18bd58a188
drm/amd/display: verify stream link before link test

[ Upstream commit b131932215c993ea5adf8192d1de2e8d6b23048d ]

[Why]
DP1.2 LL CTS test failure.

[How]
The failure is caused by not verify stream link is equal
to link, only check stream and link is not null.

Signed-off-by: Jing Zhou <Jing.Zhou@amd.com>
Reviewed-by: Wenjing Liu <Wenjing.Liu@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c