drm/amd/display: fix releasing planes when exiting odm
authorDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Thu, 7 Mar 2019 18:26:13 +0000 (13:26 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 May 2019 13:45:17 +0000 (06:45 -0700)
commit192978ff7210d7e1f79d3c4fa41ff008e3512a34
tree7b046c475f669d4d87dda61d725046144f196dd6
parentc607e4d96b09392d69c011151ab8ce8ef42f6cda
drm/amd/display: fix releasing planes when exiting odm

[ Upstream commit bc2193992b00488f5734613ac95b78ef2d2803ab ]

Releasing planes should not release the 2nd odm pipe right away,
this change leaves us with 2 pipes with null planes and same stream
when planes are released during odm.

Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/dc/core/dc_resource.c