drm/amd/display: Limit max link cap with LTTPR caps
authorGeorge Shen <George.Shen@amd.com>
Fri, 3 Dec 2021 04:07:35 +0000 (23:07 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Dec 2021 13:54:44 +0000 (08:54 -0500)
commitfddb024537f121995957d816fcf8e2e230451db2
treeda6ee0a40913ca5d1f862fd7e5a91cdc83c9a0cf
parentbf252ce1fa8ac68baee3f8525fc6453d278b619d
drm/amd/display: Limit max link cap with LTTPR caps

[Why]
Max link rate should be limited to the maximum link rate support by any
LTTPR that are connected, including when operating in transparent mode.

[How]
Include transparent mode when factoring in LTTPR max supported link
rate.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: Wesley Chalmers <wesley.chalmers@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: George Shen <George.Shen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c