drm/amd/display: Fix writeback_info is not removed
authorAlex Hung <alex.hung@amd.com>
Fri, 1 Dec 2023 13:25:35 +0000 (06:25 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Dec 2023 20:22:35 +0000 (15:22 -0500)
commitab37b88ed9de9de8d582683f7ea17059f1251a7f
treee6d4976b3ed0b2a3ccefabb922d680146635eea2
parent86ecd796a88e26e025f184ff6a2e8872a6dc9ac7
drm/amd/display: Fix writeback_info is not removed

[WHY]
Counter j was not updated to present the num of writeback_info when
writeback pipes are removed.

[HOW]
update j (num of writeback info) under the correct condition.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_stream.c