drm/i915: Fix eDP blank screen after S3 resume on HP desktops
authorTakashi Iwai <tiwai@suse.de>
Thu, 21 Jun 2012 13:30:41 +0000 (15:30 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 22 Jun 2012 22:01:42 +0000 (00:01 +0200)
commit6db65cbb941f9d433659bdad02b307f6d94465df
treec86ff900f74f8946bdd5cd8d18c9268d4572fc4a
parent58bf8062d0b293b8e1028e5b0342082002886bd4
drm/i915: Fix eDP blank screen after S3 resume on HP desktops

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

Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_suspend.c