Commit 803cc26d authored by Alex Deucher's avatar Alex Deucher
Browse files

drm/amdgpu: move pci_save_state into suspend path



for amdgpu_device_suspend.  This follows the logic
in the resume path.

Reviewed-by: default avatarEvan Quan <evan.quan@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 1489d179
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3171,8 +3171,8 @@ int amdgpu_device_suspend(struct drm_device *dev, bool suspend, bool fbcon)
	 */
	amdgpu_bo_evict_vram(adev);

	pci_save_state(dev->pdev);
	if (suspend) {
		pci_save_state(dev->pdev);
		/* Shut down the device */
		pci_disable_device(dev->pdev);
		pci_set_power_state(dev->pdev, PCI_D3hot);