drm/i915: Fix blank panel at reopening lid
authorTakashi Iwai <tiwai@suse.de>
Sat, 11 Aug 2012 06:56:42 +0000 (08:56 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sat, 11 Aug 2012 19:15:16 +0000 (21:15 +0200)
commit770c12312ad617172b1a65b911d3e6564fc5aca8
tree267bc8a7cd2c542654ac1ca1e4d217581b793517
parent9830605d4c070b16ec5c24a75503877cc7698409
drm/i915: Fix blank panel at reopening lid

When you reopen the lid on a laptop with PCH, the panel suddenly goes
blank sometimes.  It seems because BLC_PWM_CPU_CTL register is cleared
to zero when BLC_PWM_CPU_CTL2 and BLC_PWM_PCH_CTL1 registers are
enabled.

This patch fixes the problem by moving the call of the function setting
BLC_PWM_CPU_CTL after enabling other two registers.

Reported-and-tested-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_panel.c