]> 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:35:50 +0000 (23:35 -0400)
commita1762a7288178a1cc909cbe60cb13c47aebad1ad
tree3929dfc2e4bfcef0ceb9f3f29ddf876cf12256c8
parent7c2f8fd677c4ddf037d5b5544eec16d90ffed40e
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.

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