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)
committerKeith Packard <keithp@keithp.com>
Fri, 29 Jul 2011 23:23:31 +0000 (16:23 -0700)
commitcda2bb78c24de7674eafa3210314dc75bed344a6
tree267045f7fea7eb65291384cad42eedbc48c57d11
parent291427f5fdadec6e4be2924172e83588880e1539
drm/i915/pch: Save/restore PCH_PORT_HOTPLUG across suspend

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>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_suspend.c