drm/amd/display: Setup stream encoder before link enable for TMDS
authorJinZe Xu <jinze.xu@amd.com>
Tue, 20 Jun 2023 15:31:00 +0000 (08:31 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Jul 2023 15:12:18 +0000 (11:12 -0400)
commit1d96adb1946ca84ccd20b4e7a8f684cff5b0d99c
treec8414adc197782601a7b3acdbb49b97976899064
parent43c064db65e2bb5c577121353175c4060c88ccae
drm/amd/display: Setup stream encoder before link enable for TMDS

[Why]
HDMI spec requires TMDS clock to be not more than 340MHz. Stream encoder ensure
this requirement but driver enable stream encoder later than PHY. So PHY will
output full speed TMDS clock first.

[How]
Enable stream encoder first in TMDS case.

Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Acked-by: Alan Liu <haoping.liu@amd.com>
Signed-off-by: JinZe Xu <jinze.xu@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/link/link_dpms.c