]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Thu, 8 Dec 2011 19:19:14 +0000 (11:19 -0800)
commit7fdeb2e669b78ff58e6d5146306a313dbae42108
treeb4d9e1d97c2cd62ee452727e151559d838247ac3
parent6dfe1647272e55747781675022e010ff27621d16
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