drm/i915: make sure PC8 is enabled on suspend and disabled on resume v4
authorKristen Carlson Accardi <kristen@linux.intel.com>
Thu, 12 Jun 2014 15:35:48 +0000 (08:35 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 12 Jun 2014 16:24:27 +0000 (18:24 +0200)
commit8abdc17941c71b37311bb93876ac83dce58160c8
tree42d7112a38ba96e2266b06082480c30f8274e9e2
parente5747e3adcd67ae27105003ec99fb58cba180105
drm/i915: make sure PC8 is enabled on suspend and disabled on resume v4

This matches the runtime suspend paths and allows the system to enter
the lowest power mode at freeze time.

v2: move disable_pc8 call to thaw_early (Imre)
    move enable_pc8 to freeze_late (Imre/Jesse)
v3: drop spurious hunk from _freeze now that we have freeze_late (Jesse)
v4: move back to suspend_late (Imre was right)

Reviewed-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Kristen Carlson Accardi <kristen@linux.intel.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.c