]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Revive combination mode for backlight control
authorTakashi Iwai <tiwai@suse.de>
Thu, 10 Mar 2011 13:02:12 +0000 (14:02 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 10 Mar 2011 21:06:57 +0000 (13:06 -0800)
commit77fb9d79011af6fe3b5e58ec6e4b756e342b8654
treebe8082dc4aa46c14c231e7e3a5dc16f65da87d0d
parent681c50e9a3ad89e67d21d1a79071928f8d041773
drm/i915: Revive combination mode for backlight control

This reverts commit d580bdc79df7737f09cfed1ce27e424dad9cadcf

    drm/i915: Do not handle backlight combination mode specially

since this commit introduced other regressions due to untouched LBPC
register, e.g. the backlight dimmed after resume.

In addition to the revert, this patch includes a fix for the original
issue (weird backlight levels) by removing the wrong bit shift for
computing the current backlight level.
Also, including typo fixes (lpbc -> lbpc).

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=34524
Acked-by: Indan Zupancic <indan@nul.nu>
Reviewed-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: <stable@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_panel.c