Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2c2d0998 authored by Vara Reddy's avatar Vara Reddy Committed by Steve Cohen
Browse files

drm/msm/sde: continue with hw init if splash memory is not found



For continuous splash screen disabled use cases, it is possible that
no reserved memory region for the splash screen buffer is specified.
In such cases, set software sate to continuous splash disabled and
continue with the driver hardware initialization sequence.

Change-Id: I274335340111f4c77da9a06fd6b42c4e71cdea67
Signed-off-by: default avatarAravind Venkateswaran <aravindh@codeaurora.org>
Signed-off-by: default avatarSteve Cohen <cohens@codeaurora.org>
parent f7291b1b
Loading
Loading
Loading
Loading
+11 −3
Original line number Diff line number Diff line
@@ -2681,6 +2681,7 @@ static int sde_kms_hw_init(struct msm_kms *kms)
	struct sde_kms *sde_kms;
	struct drm_device *dev;
	struct msm_drm_private *priv;
	bool splash_mem_found = false;
	int i, rc = -EINVAL;

	if (!kms) {
@@ -2775,8 +2776,10 @@ static int sde_kms_hw_init(struct msm_kms *kms)

	rc = _sde_kms_get_splash_data(&sde_kms->splash_data);
	if (rc) {
		SDE_ERROR("sde splash data fetch failed: %d\n", rc);
		goto error;
		SDE_DEBUG("sde splash data fetch failed: %d\n", rc);
		splash_mem_found = false;
	} else {
		splash_mem_found = true;
	}

	rc = sde_power_resource_enable(&priv->phandle, sde_kms->core_client,
@@ -2802,6 +2805,11 @@ static int sde_kms_hw_init(struct msm_kms *kms)

	sde_dbg_init_dbg_buses(sde_kms->core_rev);

	/*
	 * Attempt continuous splash handoff only if reserved
	 * splash memory is found.
	 */
	if (splash_mem_found)
		_sde_kms_cont_splash_res_init(sde_kms);

	/* Initialize reg dma block which is a singleton */