drm/amdgpu: move pci_save_state into suspend path
for amdgpu_device_suspend. This follows the logic in the resume path. Reviewed-by: Evan Quan <evan.quan@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
1489d17940
commit
803cc26d5c
@ -3171,8 +3171,8 @@ int amdgpu_device_suspend(struct drm_device *dev, bool suspend, bool fbcon)
|
|||||||
*/
|
*/
|
||||||
amdgpu_bo_evict_vram(adev);
|
amdgpu_bo_evict_vram(adev);
|
||||||
|
|
||||||
pci_save_state(dev->pdev);
|
|
||||||
if (suspend) {
|
if (suspend) {
|
||||||
|
pci_save_state(dev->pdev);
|
||||||
/* Shut down the device */
|
/* Shut down the device */
|
||||||
pci_disable_device(dev->pdev);
|
pci_disable_device(dev->pdev);
|
||||||
pci_set_power_state(dev->pdev, PCI_D3hot);
|
pci_set_power_state(dev->pdev, PCI_D3hot);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user