summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_lvds.c
diff options
context:
space:
mode:
authorMaarten Lankhorst2015-07-13 16:30:25 +0200
committerDaniel Vetter2015-07-14 17:28:42 +0200
commit043e9bda6b7bf6ff83576c65a40becc5054e827d (patch)
treea298d281244a4344a52ab01f8a12ba3efa1ebae2 /drivers/gpu/drm/i915/intel_lvds.c
parentdrm/i915: Readout initial hw mode. (diff)
downloadkernel-qcow2-linux-043e9bda6b7bf6ff83576c65a40becc5054e827d.tar.gz
kernel-qcow2-linux-043e9bda6b7bf6ff83576c65a40becc5054e827d.tar.xz
kernel-qcow2-linux-043e9bda6b7bf6ff83576c65a40becc5054e827d.zip
drm/i915: Convert resume to atomic.
Instead of all the ad-hoc updating, duplicate the old state first before reading out the hw state, then restore it. intel_display_resume is a new function that duplicates the sw state, then reads out the hw state, and commits the old state. intel_display_setup_hw_state now only reads out the atomic state. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90396 Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Reviewed-by: Daniel Stone <daniels@collabora.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_lvds.c')
-rw-r--r--drivers/gpu/drm/i915/intel_lvds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_lvds.c b/drivers/gpu/drm/i915/intel_lvds.c
index 937e8216e9d6..cb634f48e7d9 100644
--- a/drivers/gpu/drm/i915/intel_lvds.c
+++ b/drivers/gpu/drm/i915/intel_lvds.c
@@ -473,7 +473,7 @@ static int intel_lid_notify(struct notifier_block *nb, unsigned long val,
*/
if (!HAS_PCH_SPLIT(dev)) {
drm_modeset_lock_all(dev);
- intel_modeset_setup_hw_state(dev, true);
+ intel_display_resume(dev);
drm_modeset_unlock_all(dev);
}