]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Refactor dccg35_get_other_enabled_symclk_fe
authorNicholas Susanto <Nicholas.Susanto@amd.com>
Tue, 20 Aug 2024 19:10:45 +0000 (15:10 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 6 Sep 2024 21:40:55 +0000 (17:40 -0400)
commit5359d5bc975466e8791d7f870ea4a96f1b0973bf
treedd9fb3cfac02ef786c9bfd7f032a6d61552186a2
parent4481df364d2038eb4a8f5150367b47955940f027
drm/amd/display: Refactor dccg35_get_other_enabled_symclk_fe

[Why]

Function 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]

Refactor the function to correctly return the number of FEs connected
to the input BE. Also, rename it for clarity.

Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Nicholas Susanto <Nicholas.Susanto@amd.com>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dccg/dcn35/dcn35_dccg.c