]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amdgpu: drop extra runtime pm handling in resume pmop
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 7 May 2020 15:54:49 +0000 (11:54 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 8 May 2020 18:33:30 +0000 (14:33 -0400)
The core handles this for us.

Acked-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c

index 9f9758699cb9dd9665af11626c96d2301c42b8bf..beb35dd1296454264dbe4b220ec6ffe683c0863d 100644 (file)
@@ -1173,14 +1173,6 @@ static int amdgpu_pmops_suspend(struct device *dev)
 static int amdgpu_pmops_resume(struct device *dev)
 {
        struct drm_device *drm_dev = dev_get_drvdata(dev);
-       struct amdgpu_device *adev = drm_dev->dev_private;
-
-       /* GPU comes up enabled by the bios on resume */
-       if (adev->runpm) {
-               pm_runtime_disable(dev);
-               pm_runtime_set_active(dev);
-               pm_runtime_enable(dev);
-       }
 
        return amdgpu_device_resume(drm_dev, true);
 }