drm/amd/display: Guard ASSR with internal display flag
authorStylon Wang <stylon.wang@amd.com>
Tue, 2 Mar 2021 11:25:56 +0000 (19:25 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Apr 2021 20:48:05 +0000 (16:48 -0400)
commit9127daa0a8d88a6e6452eb8b7c9be4c3f42a867e
tree45be5248cf31c59c7de308d20e7d23b0bef2bbd6
parent6c8e1f3b95a2fb3dbad1fe0f72d2902f34cfb75f
drm/amd/display: Guard ASSR with internal display flag

[Why]
ASSR enabling only considers capability declared in DPCD.
We also need to check whether the connector is internal.

[How]
ASSR enabling need to check both DPCD capability and internal display
flag.

Signed-off-by: Stylon Wang <stylon.wang@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Acked-by: Anson Jacob <Anson.Jacob@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c