]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: fix wrong statement in mst hpd debugfs
authorMikita Lipski <mikita.lipski@amd.com>
Wed, 14 Apr 2021 18:15:52 +0000 (14:15 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 29 Apr 2021 03:56:14 +0000 (23:56 -0400)
commit1597f9dd1f86289c784c39796ac275019491d67d
treebab0d68d707992e256599c3b79dedefac404f2b5
parentff1ac56017f0e8f37b536aa88191f0d3477679a1
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: 4ca2203606fbf6 ("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>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c