drm/i915: Use atomic helpers for suspend, v2.
commite2c8b8701e2d0cb5b89fa3b5c8acae9dc4f76259
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Tue, 16 Feb 2016 09:06:14 +0000 (16 10:06 +0100)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Tue, 16 Feb 2016 10:23:46 +0000 (16 11:23 +0100)
tree368a359299ba0676ecdb5a01b0351fd4a8e24353
parent1db6e2e7dc2739181bd55c3c41263634803b3cc9
drm/i915: Use atomic helpers for suspend, v2.

Instead of duplicating the functionality now that we no longer need
to preserve dpll state we can move to using the upstream suspend helper.

Changes since v1:
- Call hw readout with all mutexes held.
- Rework intel_display_suspend to only assign modeset_restore_state
  on success.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/56C2E686.5060803@linux.intel.com
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_display.c