Author: avg
Date: Fri Oct 23 07:25:14 2015
New Revision: 289784
URL: https://svnweb.freebsd.org/changeset/base/289784

Log:
  MFC r287673: radeon_suspend_kms: don't mess with pci state

Modified:
  stable/10/sys/dev/drm2/radeon/radeon_device.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/drm2/radeon/radeon_device.c
==============================================================================
--- stable/10/sys/dev/drm2/radeon/radeon_device.c       Fri Oct 23 05:03:34 
2015        (r289783)
+++ stable/10/sys/dev/drm2/radeon/radeon_device.c       Fri Oct 23 07:25:14 
2015        (r289784)
@@ -1342,14 +1342,10 @@ int radeon_suspend_kms(struct drm_device
 
        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 
 
 #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;
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to