]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/i915: Restore brightness level in aux backlight driver
authorPuthikorn Voravootivat <puthik@chromium.org>
Thu, 11 May 2017 23:02:23 +0000 (16:02 -0700)
committerJani Nikula <jani.nikula@intel.com>
Fri, 12 May 2017 12:51:20 +0000 (15:51 +0300)
Some panel will default to zero brightness when turning the
panel off and on again. This patch restores last brightness
level back when panel is turning back on.

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-8-puthik@chromium.org
drivers/gpu/drm/i915/intel_dp_aux_backlight.c

index 5f945e05efe265739327331af8daf9087f200479..b87c5a381d6af2d0f4dd92342acd71f34c09edab 100644 (file)
@@ -127,6 +127,7 @@ static void intel_dp_aux_enable_backlight(struct intel_connector *connector)
        }
 
        set_aux_backlight_enable(intel_dp, true);
+       intel_dp_aux_set_backlight(connector, connector->panel.backlight.level);
 }
 
 static void intel_dp_aux_disable_backlight(struct intel_connector *connector)