drm/i915: Correctly enable backlight brightness adjustment via DPCD
authorPuthikorn Voravootivat <puthik@chromium.org>
Thu, 11 May 2017 23:02:18 +0000 (16:02 -0700)
committerJani Nikula <jani.nikula@intel.com>
Fri, 12 May 2017 12:47:09 +0000 (15:47 +0300)
commit73ab484c90f5a696a6552c82f5d64b13303c0813
tree9db2eda615cdb35a629a163dbcad3fa7ddbedcee
parenta644ca9bcdac3b9e9f0fd2726c9198e85cecfbee
drm/i915: Correctly enable backlight brightness adjustment via DPCD

intel_dp_aux_enable_backlight() assumed that the register
BACKLIGHT_BRIGHTNESS_CONTROL_MODE can only has value 01
(DP_EDP_BACKLIGHT_CONTROL_MODE_PRESET) when initialize.

This patch fixed that by handling all cases of that register.

Signed-off-by: Puthikorn Voravootivat <puthik@chromium.org>
Reviewed-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170511230225.142870-3-puthik@chromium.org
drivers/gpu/drm/i915/intel_dp_aux_backlight.c