OSDN Git Service

drm/i915/pch: Save/restore PCH_PORT_HOTPLUG across suspend
authorAdam Jackson <ajax@redhat.com>
Tue, 26 Jul 2011 20:53:06 +0000 (16:53 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 26 Nov 2011 17:09:53 +0000 (09:09 -0800)
commit6e99164ee37d513fb99c7b941e3eecbcd8ae8573
tree2ca79844391848e8f1b5500b58f7e7ed5a7c813a
parentef2b44d1861ec01b9058ab3bcf82ad4c138551fe
drm/i915/pch: Save/restore PCH_PORT_HOTPLUG across suspend

commit cda2bb78c24de7674eafa3210314dc75bed344a6 upstream.

At least on a Lenovo X220 the HPD bits of this are enabled at boot but
cleared after resume, which means plug interrupts stop working.

This also happens to fix DP displays re-lighting on resume.  I'm quite
certain that's an accident: the first DP link train inevitably fails on
that machine, and it's only serendipity that we're getting multiple plug
interrupts and the second train works.  But I shall take my victories
where I get them.

Signed-off-by: Adam Jackson <ajax@redhat.com>
Tested-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
Cc: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_suspend.c