drm/amd/display: Fix topology change issue in MST rehook
authorJerry (Fangzhi) Zuo <Jerry.Zuo@amd.com>
Tue, 12 Dec 2017 22:33:57 +0000 (17:33 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 7 Mar 2018 21:27:03 +0000 (16:27 -0500)
commit1c7571fb29c33f90639d477d24514609cd738cd9
tree70a7a5f4b496d5bf91aaf7067422adb0e2ef81f2
parent36cc549d59864b7161f0e23d710c1c4d1b9cf022
drm/amd/display: Fix topology change issue in MST rehook

When topology changed and rehook up MST display to the same DP
connector, need to take care of drm_dp_mst_port object.

Due to the topology is changed, drm_dp_mst_port and corresponding
i2c_algorithm object could be NULL in such situation.

Signed-off-by: Jerry (Fangzhi) Zuo <Jerry.Zuo@amd.com>
Reviewed-by: Roman Li <Roman.Li@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c