drm/amd/display: Stop storing failures into adev->dm.cached_state
authorMario Limonciello <mario.limonciello@amd.com>
Mon, 2 Jun 2025 01:44:31 +0000 (20:44 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Jun 2025 16:19:18 +0000 (12:19 -0400)
commit709a37ab9c63297da2194dc36f604537f9d2d417
treeafdf5fc0a7601100202cdeb79547ca81ef21ff2a
parent64c3e4a868f1ddde8eee2bb038a2ed0e8f06a247
drm/amd/display: Stop storing failures into adev->dm.cached_state

If drm_atomic_helper_suspend() has failed for any reason, it's stored
in adev->dm.cached_state.  This isn't expected because the resume
(or complete()) sequence will attempt to use the stored state to
resume.

Reviewed-by: Alex Hung <alex.hung@amd.com>
Link: https://lore.kernel.org/r/20250602014432.3538345-3-superm1@kernel.org
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c