summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorImre Deak <imre.deak@intel.com>2014-10-23 19:23:23 +0300
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-10-24 16:34:19 +0200
commitf2476ae65e6159b41168bc41c630e9fbb1d72dde (patch)
tree376407fd0cd8496c50bde23bf55c6036764e470e
parentee6f280e7895c838d90e8ef19ba737c8003ae85d (diff)
downloadblackbird-op-linux-f2476ae65e6159b41168bc41c630e9fbb1d72dde.tar.gz
blackbird-op-linux-f2476ae65e6159b41168bc41c630e9fbb1d72dde.zip
drm/i915: disable/re-enable PCI device around S4 freeze/thaw
We already disable everything during S4 freeze, except the PCI device itself. There is no reason why we couldn't disable that too and doing so allows us to unify these handlers in the next patch with the corresponding S3 suspend/resume handlers. Signed-off-by: Imre Deak <imre.deak@intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--drivers/gpu/drm/i915/i915_drv.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index 4524c615f0a7..be4cb1d4f3e9 100644
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
@@ -1019,12 +1019,11 @@ static int i915_pm_freeze_late(struct device *dev)
{
struct pci_dev *pdev = to_pci_dev(dev);
struct drm_device *drm_dev = pci_get_drvdata(pdev);
- struct drm_i915_private *dev_priv = drm_dev->dev_private;
if (drm_dev->switch_power_state == DRM_SWITCH_POWER_OFF)
return 0;
- return intel_suspend_complete(dev_priv);
+ return i915_drm_suspend_late(drm_dev);
}
static int i915_pm_thaw_early(struct device *dev)
@@ -1035,7 +1034,7 @@ static int i915_pm_thaw_early(struct device *dev)
if (drm_dev->switch_power_state == DRM_SWITCH_POWER_OFF)
return 0;
- return i915_drm_thaw_early(drm_dev);
+ return i915_resume_early(drm_dev);
}
static int i915_pm_thaw(struct device *dev)
OpenPOWER on IntegriCloud