drm/amd/display: fix trigger_hotplug to support mst case
authorWayne Lin <Wayne.Lin@amd.com>
Tue, 17 Aug 2021 10:14:42 +0000 (18:14 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Jul 2022 20:04:35 +0000 (16:04 -0400)
commitc8a58ce18ca36b62749e326411176554462a5e2c
treef6d76fc72e1f5bd7424fd90d7206828c8a94cf8d
parentaec4706b0e70e0cab2d0650b63cf2ddc1b154352
drm/amd/display: fix trigger_hotplug to support mst case

[Why & How]
Correct few problems below to have debugfs trigger_hotplug entry
supports mst case

* Adjust the place for acquiring the hpd_lock. We'll also access
  dc_link when simulate unplug
* When detect the connector is a mst root, call
  reset_cur_dp_mst_topology() to simulate unplug
* Don't support hotplug caused by CSN message since we can't change
  mst topology info directly. We can't simulate that
* Clean up redundant code

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: Hersen Wu <hersenxs.wu@amd.com>
Acked-by: Alan Liu <HaoPing.Liu@amd.com>
Signed-off-by: Wayne Lin <Wayne.Lin@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c