drm/amd/display: Only wait for blank completion if OTG active
authorAric Cyr <aric.cyr@amd.com>
Sat, 11 Feb 2023 15:03:22 +0000 (10:03 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Feb 2023 19:30:55 +0000 (14:30 -0500)
commit82a10aff9428f1d190de55ef7971fdb84303cc7a
tree550641825a2f0d4eec2a219e41e5dc3fd43c9d1c
parentf3f8f16b10f8258f1836e1110099097490a1d6c1
drm/amd/display: Only wait for blank completion if OTG active

[why]
If OTG is not active, waiting for blank completion will always fail and
timeout resulting in unnecessary driver delays.

[how]
Check that OTG is enabled before waiting for blank.

Reviewed-by: Alvin Lee <Alvin.Lee2@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Aric Cyr <aric.cyr@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c