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

Commit 5171793b authored by Sagar Gore's avatar Sagar Gore
Browse files

msm: camera: isp: Use different mutex for vfe reg update and buf mgr



VFE reg update is independent of buffer operations done by AXI.
During enqueue/dequeue operations, driver will update list of buffers
only without interfering with VFE registers.

Change-Id: I718f6c2c4f9f3ed2b1dcb6182989f99cbd5b0385
Signed-off-by: default avatarSagar Gore <sgore@codeaurora.org>
parent a202b021
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -644,9 +644,9 @@ static long msm_isp_ioctl_unlocked(struct v4l2_subdev *sd,
	case VIDIOC_MSM_ISP_REQUEST_BUF:
	case VIDIOC_MSM_ISP_ENQUEUE_BUF:
	case VIDIOC_MSM_ISP_RELEASE_BUF: {
		mutex_lock(&vfe_dev->realtime_mutex);
		mutex_lock(&vfe_dev->core_mutex);
		rc = msm_isp_proc_buf_cmd(vfe_dev->buf_mgr, cmd, arg);
		mutex_unlock(&vfe_dev->realtime_mutex);
		mutex_unlock(&vfe_dev->core_mutex);
		break;
	}
	case VIDIOC_MSM_ISP_REQUEST_STREAM: