Skip to content

Commit 3cbae5a

Browse files
Mikita Lipskialexdeucher
authored andcommitted
drm/amd/display: fix wrong statement in mst hpd debugfs
[why] Previous statement would always evaluate to true making it meaningless [how] Just check if a connector is MST by checking if its port exists. Fixes: 41efcd3 ("drm/amd/display: Add MST capability to trigger_hotplug interface") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Mikita Lipski <mikita.lipski@amd.com> Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com> Acked-by: Wayne Lin <waynelin@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent d7b4a60 commit 3cbae5a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3012,7 +3012,7 @@ static int trigger_hpd_mst_set(void *data, u64 val)
30123012
if (!aconnector->dc_link)
30133013
continue;
30143014

3015-
if (!(aconnector->port && &aconnector->mst_port->mst_mgr))
3015+
if (!aconnector->mst_port)
30163016
continue;
30173017

30183018
link = aconnector->dc_link;

0 commit comments

Comments
 (0)