drm/amd/display: fix counter in wait_for_no_pipes_pending
authorRoman Li <roman.li@amd.com>
Wed, 26 Feb 2020 22:30:29 +0000 (17:30 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 May 2020 17:11:13 +0000 (13:11 -0400)
commit5f6dbd54c05f38d30da9c1d310219808a69afd35
tree0e373ae3f4c59e3e57ee3f94d62cd33f77c9b63f
parent8c076bc8d731ece31c7c932730c5581af50f47da
drm/amd/display: fix counter in wait_for_no_pipes_pending

[Why]
Wait counter is not being reset for each pipe.

[How]
Move counter reset into pipe loop scope.

Signed-off-by: Roman Li <roman.li@amd.com>
Reviewed-by: Zhan Liu <Zhan.Liu@amd.com>
Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c