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

Commit ba4d153e authored by Ping Li's avatar Ping Li
Browse files

msm: mdss: Disable the PP features if partial update feature is enabled



Check the whether partial update feature is enabled or not before enabling
any post processing features.

Change-Id: Ibf2111d5ca8714279903980d14e63bab556bb41f
Signed-off-by: default avatarPing Li <quicpingli@codeaurora.org>
parent 9d075f70
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -2413,6 +2413,11 @@ static int mdss_mdp_pp_ioctl(struct msm_fb_data_type *mfd,
	u32 copyback = 0;
	u32 copy_from_kernel = 0;

	if (mfd->panel_info->partial_update_enabled) {
		pr_err("Partical update feature is enabled.");
		return -EPERM;
	}

	ret = copy_from_user(&mdp_pp, argp, sizeof(mdp_pp));
	if (ret)
		return ret;
@@ -2526,6 +2531,11 @@ static int mdss_mdp_histo_ioctl(struct msm_fb_data_type *mfd, u32 cmd,
	u32 block;
	static int req = -1;

	if (mfd->panel_info->partial_update_enabled) {
		pr_err("Partical update feature is enabled.");
		return -EPERM;
	}

	switch (cmd) {
	case MSMFB_HISTOGRAM_START:
		if (!mfd->panel_power_on)