]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
drm/i915: fix backlight invert for non-zero minimum brightness
authorJani Nikula <jani.nikula@intel.com>
Wed, 31 May 2017 08:33:55 +0000 (11:33 +0300)
committerJani Nikula <jani.nikula@intel.com>
Fri, 4 Aug 2017 12:22:18 +0000 (15:22 +0300)
commite9d7486eac949f2a8d121657e536c8abdd4ea088
treeff999fb8b4235900962264cefa62f295f6915acd
parent6cb0c6ad9e07f2c7971c4e8e0d9b7ceba151a925
drm/i915: fix backlight invert for non-zero minimum brightness

When we started following the backlight minimum brightness in
6dda730e55f4 ("drm/i915: respect the VBT minimum backlight brightness")
we overlooked the brightness invert quirk. Even if we invert the
brightness, we need to take the min limit into account. We probably
missed this because the invert has only been required on gen4 for proper
operation.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101127
Fixes: 6dda730e55f4 ("drm/i915: respect the VBT minimum backlight brightness")
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170531083355.7898-1-jani.nikula@intel.com
drivers/gpu/drm/i915/intel_panel.c