diff options
author | Prike Liang <Prike.Liang@amd.com> | 2024-10-14 10:25:35 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-10-28 23:40:58 +0300 |
commit | d5e3d8a2a6cb8b8c8678e60ae8067c18ffbc2da2 (patch) | |
tree | cf0e272900575aba3e4ab45d75c3fd7433f7b909 /drivers/gpu/drm/amd/amdgpu/soc15.c | |
parent | 58a8c756fc4ca243fb5c070e1b9e0970f00757d9 (diff) | |
download | linux-d5e3d8a2a6cb8b8c8678e60ae8067c18ffbc2da2.tar.xz |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/soc15.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/soc15.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c index af739b13b6b5..533b4b2b432d 100644 --- a/drivers/gpu/drm/amd/amdgpu/soc15.c +++ b/drivers/gpu/drm/amd/amdgpu/soc15.c @@ -584,13 +584,10 @@ static bool soc15_need_reset_on_resume(struct amdgpu_device *adev) * performing pm core test. */ if (adev->flags & AMD_IS_APU && adev->in_s3 && - !pm_resume_via_firmware()) { - adev->suspend_complete = false; + !pm_resume_via_firmware()) return true; - } else { - adev->suspend_complete = true; + else return false; - } } static int soc15_asic_reset(struct amdgpu_device *adev) |