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:
Konstantin Makariev 2019-03-01 11:59:46 -06:00 • committed by Konstantin Makariev
commit 097ba84eac

View file

@ -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 */