mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
synaptics_mmi: fix handling of splash screen mode
Flag splash screen mode was introduced to to work around deficiencies in DRM framework found on early stages of development. Once DRM matured, flag becomes unnecessary. Removing this flag revealed a bug in the logic. This commit is fixing it. Change-Id: I0f8310f79732e675e6be7f5e373e6b2f07765e0c Signed-off-by: Konstantin Makariev <hcv867@motorola.com> Reviewed-on: https://gerrit.mot.com/1316335 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Konstantin Makariev <kmakariev@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
1b3dfa3d61
commit
097ba84eac
1 changed files with 11 additions and 8 deletions
|
|
@ -6581,14 +6581,17 @@ static void synaptics_rmi4_detection_work(struct work_struct *work)
|
|||
char *pname = NULL;
|
||||
|
||||
#if defined(CONFIG_DRM)
|
||||
/* DRM status of primary panel */
|
||||
panel_ready = dsi_display_is_panel_enable(rmi4_data->ctrl_dsi, &probe_status, &pname);
|
||||
dev_dbg(dev, "%s: drm: probe=%d, enable=%d, panel'%s'\n",
|
||||
__func__, probe_status, panel_ready, pname);
|
||||
/* check if primary panel is not a dummy one */
|
||||
if (pname && strstr(pname, "dummy")) {
|
||||
dev_info(dev, "%s: dummy panel detected; terminating...\n", __func__);
|
||||
terminate = true;
|
||||
if (rmi4_data->splash_screen_mode) {
|
||||
/* DRM status of primary panel */
|
||||
panel_ready = dsi_display_is_panel_enable(rmi4_data->ctrl_dsi,
|
||||
&probe_status, &pname);
|
||||
dev_dbg(dev, "%s: drm: probe=%d, enable=%d, panel'%s'\n",
|
||||
__func__, probe_status, panel_ready, pname);
|
||||
/* check if primary panel is not a dummy one */
|
||||
if (pname && strstr(pname, "dummy")) {
|
||||
dev_info(dev, "%s: dummy panel detected; terminating...\n", __func__);
|
||||
terminate = true;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
/* pname only gets initialized by DRM */
|
||||
|
|
|
|||
Loading…
Reference in a new issue