drm/amd/display: initialize get_max_link_cap
authorCharlene Liu <Charlene.Liu@amd.com>
Sun, 5 Apr 2020 20:41:03 +0000 (16:41 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 9 Apr 2020 14:43:17 +0000 (10:43 -0400)
commitc7f345e53c45c78478833aaf8954a0ed66ae8672
tree176359762f78ef374e7beb61d5ffd4d14edb5871
parentfa90219a129fd87bc2186caca79d2626fc1986a9
drm/amd/display: initialize get_max_link_cap

[why]
usb3->usb2 switch system hang.
driver needs to limit the max sink cap based on DP4 mode.

[how]
based on s_dpalt check and DP4 check:
limit the USB-C DPALT DP maximum supported lane count.

Signed-off-by: Charlene Liu <Charlene.Liu@amd.com>
Reviewed-by: Chris Park <Chris.Park@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_link_encoder.c