drm/amd/display: validate extended dongle caps
authorWenjing Liu <Wenjing.Liu@amd.com>
Wed, 5 Dec 2018 17:14:45 +0000 (12:14 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 20 Dec 2018 17:13:18 +0000 (12:13 -0500)
commit99b922f9ed6a6313c0d2247cde8aa1e4a0bd67e4
treeaf9a0358b78c8d246a3a57ed713535d5e25f7b68
parent9136e81e986a7a44bd360a2d2abf19de886feaa8
drm/amd/display: validate extended dongle caps

[why]
Some dongle doesn't have a valid extended dongle caps,
but we still set the extended dongle caps to be valid.
This causes validation fails for all timing.

[how]
If no dp_hdmi_max_pixel_clk is provided,
don't use extended dongle caps.

Signed-off-by: Wenjing Liu <Wenjing.Liu@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Abdoulaye Berthe <Abdoulaye.Berthe@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c