drm/i915: Fix eDP blank screen after S3 resume on HP desktops
commit69d1e4c856fd460c37c3eb58996f69dc9add8111
authorTakashi Iwai <tiwai@suse.de>
Thu, 21 Jun 2012 13:30:41 +0000 (21 15:30 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 4 Jul 2012 04:44:27 +0000 (4 05:44 +0100)
treebbe54cb6e487e6086900b304cc81a5c8d3a7051d
parent8bd2f25de46602be06dbce1c5daca376cfd6ed8b
drm/i915: Fix eDP blank screen after S3 resume on HP desktops

commit 6db65cbb941f9d433659bdad02b307f6d94465df upstream.

This patch fixes the problem on some HP desktop machines with eDP
which give blank screens after S3 resume.

It turned out that BLC_PWM_CPU_CTL must be written after
BLC_PWM_CPU_CTL2.  Otherwise it doesn't take effect on these
SNB machines.

Tested with 3.5-rc3 kernel.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=49233

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/gpu/drm/i915/i915_suspend.c