drm/amdgpu: clean up the suspend_complete
authorPrike Liang <Prike.Liang@amd.com>
Mon, 14 Oct 2024 07:25:35 +0000 (15:25 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 28 Oct 2024 20:40:58 +0000 (16:40 -0400)
commitd5e3d8a2a6cb8b8c8678e60ae8067c18ffbc2da2
treecf0e272900575aba3e4ab45d75c3fd7433f7b909
parent58a8c756fc4ca243fb5c070e1b9e0970f00757d9
drm/amdgpu: clean up the suspend_complete

To check the status of S3 suspend completion,
use the PM core pm_suspend_global_flags bit(1)
to detect S3 abort events. Therefore, clean up
the AMDGPU driver's private flag suspend_complete.

Signed-off-by: Prike Liang <Prike.Liang@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
drivers/gpu/drm/amd/amdgpu/soc15.c
drivers/gpu/drm/amd/amdgpu/soc21.c