drm/amd/display: Refactor dccg401_get_other_enable_symclk_fe
authorRelja Vojvodic <relja.vojvodic@amd.com>
Mon, 10 Jun 2024 18:37:06 +0000 (14:37 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Jun 2024 21:10:35 +0000 (17:10 -0400)
commit8aa5aff2bf2d5cf793946f1415dfbeea9f936ad5
tree301e624d6056cb340a32e8741fdfb58f68a4d665
parent6e3eb2766731c6bd2bfae5a0fbb538ec85e7e822
drm/amd/display: Refactor dccg401_get_other_enable_symclk_fe

[WHY]
Function was used to check the number of FEs connected to the current BE.
This was then used to determine if the symclk could be disabled, if all
FEs were disconnected. However, the function would skip over the primary
FE and return 0 when the primary FE was still connected. This caused black
screens on driver disable with an MST daisy chain hooked up.

[HOW]
Refactored the function to correctly return the number of FEs connected to
the input BE. Also renamed it for clarity.

Reviewed-by: Wenjing Liu <wenjing.liu@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Relja Vojvodic <relja.vojvodic@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dccg/dcn401/dcn401_dccg.c