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

Commit b9f45ceb authored by Jayant Shekhar's avatar Jayant Shekhar
Browse files

msm: mdss: Check ctl power on status before BTA status check



Control path power on status should be checked before BTA status
check else command sending failure and IOMMU page faults during
bootup can be observed if ESD is enabled for device. Currently
IOMMU is not powered on when commands are being sent.

Change-Id: Ice66f38e79755eb14843fc63afe058e4bab2f0e2
Signed-off-by: default avatarJayant Shekhar <jshekhar@codeaurora.org>
parent 104105f6
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -65,6 +65,13 @@ void mdss_check_dsi_ctrl_status(struct work_struct *work, uint32_t interval)
		return;
	}

	if (!ctl->power_on) {
		schedule_delayed_work(&pstatus_data->check_status,
			msecs_to_jiffies(interval));
		pr_err("%s: ctl not powered on\n", __func__);
		return;
	}

	mutex_lock(&ctrl_pdata->mutex);
	if (ctl->shared_lock)
		mutex_lock(ctl->shared_lock);