drm/amd/display: disable lttpr for invalid lttpr caps.
authorabdoulaye berthe <abdoulaye.berthe@amd.com>
Thu, 10 Oct 2019 20:41:52 +0000 (16:41 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 13 Nov 2019 20:29:43 +0000 (15:29 -0500)
commit61aa7a6f760e78e50fad708029fc3aa201ec7a89
tree7cf2746a59503281f44817f886533e1d7b2c1e9c
parent9bffd0806d80de9c189b8cf69b3022783e5c8f2a
drm/amd/display: disable lttpr for invalid lttpr caps.

1-Read lttpr caps in 5-bytes
2-Parse caps
3-Validate caps and set lttpr_mode
4-Use hw default timeout when lttpr is disabled.

Signed-off-by: abdoulaye berthe <abdoulaye.berthe@amd.com>
Reviewed-by: Wenjing Liu <Wenjing.Liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
drivers/gpu/drm/amd/display/dc/dc_types.h
drivers/gpu/drm/amd/display/dc/inc/dc_link_dp.h