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

Commit 1aadfe80 authored by Vishalsingh Hajeri's avatar Vishalsingh Hajeri Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: isp: Remove redundant use of spin lock



Interrupts in activated state machine are already
protected with spin_lock for context. No need to
reuse the spin_lock in interrupt handling routine.

CRs-Fixed: 2538876
Change-Id: Id86e7dc3419861cb8bce143c56923126a3dc3d3e
Signed-off-by: default avatarVishalsingh Hajeri <vhajeri@codeaurora.org>
parent 259e6f55
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -810,21 +810,17 @@ static int __cam_isp_ctx_notify_sof_in_activated_state(
			return rc;
		}

		spin_lock_bh(&ctx->lock);
		req = list_first_entry(&ctx->active_req_list,
			struct cam_ctx_request, list);
		req_isp = (struct cam_isp_ctx_req *) req->req_priv;
		spin_unlock_bh(&ctx->lock);

		if (ctx_isp->bubble_frame_cnt >= 1 &&
			req_isp->bubble_detected) {
			req_isp->num_acked = 0;
			ctx_isp->bubble_frame_cnt = 0;
			req_isp->bubble_detected = false;
			spin_lock_bh(&ctx->lock);
			list_del_init(&req->list);
			list_add(&req->list, &ctx->pending_req_list);
			spin_unlock_bh(&ctx->lock);
			atomic_set(&ctx_isp->process_bubble, 0);
			ctx_isp->active_req_cnt--;
			CAM_DBG(CAM_REQ,