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>
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");
}