OSDN Git Service

msm: mdss: skip panel type node change during resolution switch
authorVeera Sundaram Sankaran <veeras@codeaurora.org>
Thu, 16 Jun 2016 23:24:11 +0000 (16:24 -0700)
committerKyle Yan <kyan@codeaurora.org>
Tue, 5 Jul 2016 22:32:41 +0000 (15:32 -0700)
The panel type sysfs node indicates the type of panel that
is currently in use, either video or cmd mode. This is
updated after every dynamic switch. Currently, this node
is updated to an invalid value during dynamic resolution switch.
Skip the setting as the mode is not changed during resolution
switch.

Change-Id: Ic002ad587eeade068561c0e9f1d29aeb1689ada5
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
drivers/video/fbdev/msm/mdss_fb.c

index cac94f6..cc8ce49 100644 (file)
@@ -3526,7 +3526,8 @@ skip_commit:
                mutex_lock(&mfd->switch_lock);
                mfd->switch_state = MDSS_MDP_NO_UPDATE_REQUESTED;
                mutex_unlock(&mfd->switch_lock);
-               mfd->panel.type = new_dsi_mode;
+               if (new_dsi_mode != SWITCH_RESOLUTION)
+                       mfd->panel.type = new_dsi_mode;
                pr_debug("Dynamic mode switch completed\n");
        }