summaryrefslogtreecommitdiffstats
path: root/sys/dev/drm2
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2015-10-23 07:25:14 +0000
committeravg <avg@FreeBSD.org>2015-10-23 07:25:14 +0000
commit2666a308ea9a42ee996f2c270516031165e82c64 (patch)
tree9d5d5287eccb3c90e82bcb9ff74b3ba361c17dd6 /sys/dev/drm2
parente25ab6846b2221872ca3abfa3c560b07b4afad9a (diff)
downloadFreeBSD-src-2666a308ea9a42ee996f2c270516031165e82c64.zip
FreeBSD-src-2666a308ea9a42ee996f2c270516031165e82c64.tar.gz
MFC r287673: radeon_suspend_kms: don't mess with pci state
Diffstat (limited to 'sys/dev/drm2')
-rw-r--r--sys/dev/drm2/radeon/radeon_device.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/dev/drm2/radeon/radeon_device.c b/sys/dev/drm2/radeon/radeon_device.c
index e5c676b..73b2f4c 100644
--- a/sys/dev/drm2/radeon/radeon_device.c
+++ b/sys/dev/drm2/radeon/radeon_device.c
@@ -1342,14 +1342,10 @@ int radeon_suspend_kms(struct drm_device *dev)
radeon_agp_suspend(rdev);
- pci_save_state(device_get_parent(dev->dev));
#ifdef FREEBSD_WIP
if (state.event == PM_EVENT_SUSPEND) {
/* Shut down the device */
pci_disable_device(dev->pdev);
-#endif /* FREEBSD_WIP */
- pci_set_powerstate(dev->dev, PCI_POWERSTATE_D3);
-#ifdef FREEBSD_WIP
}
console_lock();
#endif /* FREEBSD_WIP */
@@ -1380,10 +1376,6 @@ int radeon_resume_kms(struct drm_device *dev)
#ifdef FREEBSD_WIP
console_lock();
-#endif /* FREEBSD_WIP */
- pci_set_powerstate(device_get_parent(dev->dev), PCI_POWERSTATE_D0);
- pci_restore_state(device_get_parent(dev->dev));
-#ifdef FREEBSD_WIP
if (pci_enable_device(dev->pdev)) {
console_unlock();
return -1;
OpenPOWER on IntegriCloud