GFX-Display: Display Brightness settings ignored after bootup
authorHitesh K. Patel <hitesh.k.patel@intel.com>
Mon, 16 Apr 2012 20:32:15 +0000 (13:32 -0700)
committerbuildbot <buildbot@intel.com>
Thu, 26 Apr 2012 16:16:11 +0000 (09:16 -0700)
BZ: 33396

For Enzo Panel we need to make sure we set the display status
variable correctly.

Change-Id: Ie6104509f4d8cde5ad3f8b7aa8f3252597ccd2ed
Signed-off-by: Hitesh K. Patel <hitesh.k.patel@intel.com>
Reviewed-on: http://android.intel.com:8080/46007
Reviewed-by: Ai, Ke <ke.ai@intel.com>
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/staging/mrst/drv/auo_sc1_cmd.c

index 0f34364..5ec5adb 100644 (file)
@@ -620,6 +620,7 @@ static void mdfld_auo_dsi_dbi_prepare(struct drm_encoder *encoder)
        dbi_output->mode_flags &= ~MODE_SETTING_ENCODER_DONE;
 
        mdfld_auo_dsi_dbi_set_power(encoder, false);
+       gbdispstatus = false;
 }
 
 static void mdfld_auo_dsi_dbi_commit(struct drm_encoder *encoder)
@@ -639,6 +640,8 @@ static void mdfld_auo_dsi_dbi_commit(struct drm_encoder *encoder)
 
        mdfld_auo_dsi_dbi_set_power(encoder, true);
 
+       gbdispstatus = true;
+
        dbi_output->mode_flags &= ~MODE_SETTING_IN_ENCODER;
 
 #ifdef CONFIG_MDFLD_DSI_DPU