[lkml]   [2011]   [Mar]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] drm/i915: Revive combination mode for backlight control
On Thu, 10 Mar 2011 14:02:12 +0100, Takashi Iwai <> wrote:
> This reverts commit 951f3512dba5bd44cda3e5ee22b4b522e4bb09fb
> 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:
> Acked-by: Indan Zupancic <>
> Cc: <>
> Signed-off-by: Takashi Iwai <>

This looks good, and ensures that LBPC ranges from 0 - 0xfe as required.

The one thing we want is a comment that explains

> + val &= ~1;

The reason for this is that some ancient platforms wire this bit to
be "go to max backlight", or at least that's why this was in the 2D
driver from which this code was derived.

Reviewed-by: Keith Packard <>
Reviewed-by: Jesse Barnes <>

[unhandled content-type:application/pgp-signature]
 \ /
  Last update: 2011-03-10 20:39    [W:0.183 / U:1.320 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site