drm/amd/display: Fix writeback_info never got updated
authorAlex Hung <alex.hung@amd.com>
Fri, 1 Dec 2023 13:25:33 +0000 (06:25 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Dec 2023 20:22:35 +0000 (15:22 -0500)
commitc09919e6ea5fefd49d8b7b54aa5b222937163108
tree9c6dcda958b99f8fcfdd46fdd754c6c3365896b1
parentf772f902b28662188636faba88e2a10bdb08e128
drm/amd/display: Fix writeback_info never got updated

[WHY]
wb_enabled field is set to false before it is used, and the following
code will never be executed.

[HOW]
Setting wb_enable to false after all removal work is completed.

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