drm/amd/display: Use is_dig_enable function instead of dcn10 hardcode
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Thu, 15 Jun 2023 15:12:33 +0000 (11:12 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Jul 2023 15:12:29 +0000 (11:12 -0400)
commitac30aeae7ab9eb57eeb6f0763db16bdc003ba4aa
tree18ca1404dbdaffc89b86bcfdff7c953f4f19e6f3
parent1d96adb1946ca84ccd20b4e7a8f684cff5b0d99c
drm/amd/display: Use is_dig_enable function instead of dcn10 hardcode

[Why]
This can differ depending on ASIC and we can end up skipping all
transmitter control if we're relying on the wrong bit as a shortcut
for whether link is on/off.

[How]
The ASIC table itself provides the correct DIG check, use that instead
of the dcn10 hardcode.

Reviewed-by: Syed Hassan <syed.hassan@amd.com>
Acked-by: Alan Liu <haoping.liu@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@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/dcn10/dcn10_link_encoder.c
drivers/gpu/drm/amd/display/dc/dcn31/dcn31_dio_link_encoder.c