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

Commit a7613cca authored by Krishna Manikandan's avatar Krishna Manikandan
Browse files

msm: mdss: Modify check for supported ioctls



Modify the check for supported ioctls in the driver
to ensure that the ioctls are still valid for MDP3
targets.

Change-Id: Id010175a1da9a3b8d228849d3ea937e62de8cc8e
Signed-off-by: default avatarKrishna Manikandan <mkrishn@codeaurora.org>
parent c3cad444
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -4646,6 +4646,12 @@ static int __ioctl_wait_idle(struct msm_fb_data_type *mfd, u32 cmd)
	return ret;
}

#ifdef TARGET_HW_MDSS_MDP3
static bool check_not_supported_ioctl(u32 cmd)
{
	return false;
}
#else
static bool check_not_supported_ioctl(u32 cmd)
{
	return((cmd == MSMFB_OVERLAY_SET) || (cmd == MSMFB_OVERLAY_UNSET) ||
@@ -4654,6 +4660,7 @@ static bool check_not_supported_ioctl(u32 cmd)
		(cmd == MSMFB_BUFFER_SYNC) || (cmd == MSMFB_OVERLAY_QUEUE) ||
		(cmd == MSMFB_NOTIFY_UPDATE));
}
#endif

/*
 * mdss_fb_do_ioctl() - MDSS Framebuffer ioctl function