mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-05-28 10:07:05 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue