drm/amd/display: trigger timing sync only if TG is running
authorAurabindo Pillai <aurabindo.pillai@amd.com>
Mon, 21 Nov 2022 20:48:23 +0000 (15:48 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 23 Nov 2022 15:31:31 +0000 (10:31 -0500)
commit6066aaf74f510fc171dbe9375153aee2d60d37aa
treeae6ee5a8104c043776e15a355cb3bcd94228b4d3
parent25b2483c1f0c6089a2297caf0aa198dc7701d5e4
drm/amd/display: trigger timing sync only if TG is running

[Why&How]
If the timing generator isnt running, it does not make sense to trigger
a sync on the corresponding OTG. Check this condition before starting.
Otherwise, this will cause error like:

*ERROR* GSL: Timeout on reset trigger!

Fixes: dc55b106ad47 ("drm/amd/display: Disable phantom OTG after enable for plane disable")
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c