mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 20:33:58 -04:00
disp: msm: sde: skip msm_lastclose if display is stuck in splash
This change skips msm_lastclose, when splash enabled builtin-displays
equals number of actual displays and are stuck in continuous splash.
It fixes the issue seen with change commit id 548b17185e95
("disp: msm: send power_on event in dual display composer kill scenario").
Change-Id: I1f5417d8945db621dc20ab0a9cc0146eabae5e22
Signed-off-by: Jayaprakash Madisetty <quic_jmadiset@quicinc.com>
This commit is contained in:
parent
38a180a911
commit
74e59e97a7
2 changed files with 14 additions and 7 deletions
|
|
@ -1069,10 +1069,8 @@ static void msm_lastclose(struct drm_device *dev)
|
|||
priv->pending_crtcs);
|
||||
|
||||
rc = kms->funcs->trigger_null_flush(kms);
|
||||
if (rc) {
|
||||
DRM_ERROR("null flush commit failure during lastclose\n");
|
||||
if (rc)
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -3738,10 +3738,17 @@ static int sde_kms_trigger_null_flush(struct msm_kms *kms)
|
|||
|
||||
sde_kms = to_sde_kms(kms);
|
||||
|
||||
if (!sde_kms->splash_data.num_splash_displays ||
|
||||
sde_kms->dsi_display_count == sde_kms->splash_data.num_splash_displays)
|
||||
return rc;
|
||||
/* If splash handoff is done, early return*/
|
||||
if (!sde_kms->splash_data.num_splash_displays)
|
||||
return 0;
|
||||
|
||||
/* If all builtin-displays are having cont splash enabled, ignore lastclose*/
|
||||
if (sde_kms->dsi_display_count == sde_kms->splash_data.num_splash_displays)
|
||||
return -EINVAL;
|
||||
|
||||
/* Trigger NULL flush if built-in secondary/primary is stuck in splash
|
||||
* while the primary/secondary is running respectively before lastclose.
|
||||
*/
|
||||
for (i = 0; i < MAX_DSI_DISPLAYS; i++) {
|
||||
splash_display = &sde_kms->splash_data.splash_display[i];
|
||||
|
||||
|
|
@ -3754,10 +3761,12 @@ static int sde_kms_trigger_null_flush(struct msm_kms *kms)
|
|||
|
||||
if (!rc && crtc)
|
||||
sde_kms_cancel_delayed_work(crtc);
|
||||
if (rc)
|
||||
DRM_ERROR("null flush commit failure during lastclose\n");
|
||||
}
|
||||
}
|
||||
|
||||
return rc;
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_DEEPSLEEP
|
||||
|
|
|
|||
Loading…
Reference in a new issue