drm/amd/display: fix missing writeback disablement if plane is removed
authorRoy Chan <roy.chan@amd.com>
Wed, 21 Jul 2021 23:33:26 +0000 (19:33 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 9 Aug 2021 19:42:47 +0000 (15:42 -0400)
commit82367e7f22d085092728f45fd5fbb15e3fb997c0
tree50928d6c4684a7d6ee14dc61c59fd3924a05ae58
parentf43a19fd0e976736d8f1b70b6fe1b6b88d6a900b
drm/amd/display: fix missing writeback disablement if plane is removed

[Why]
If the plane has been removed, the writeback disablement logic
doesn't run

[How]
fix the logic order

Acked-by: Anson Jacob <Anson.Jacob@amd.com>
Signed-off-by: Roy Chan <roy.chan@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/dcn20/dcn20_hwseq.c
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c