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

Commit 780ac925 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: isp: Flush Pending list after stop HW to avoid race"

parents 5139e109 6a8aa76d
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -2544,7 +2544,14 @@ static int __cam_isp_ctx_flush_req_in_top_state(
		if (rc)
			goto end;

		/*
		 * As HW is stopped already No request will move from
		 * one list to other good time to flush reqs.
		 */
		spin_lock_bh(&ctx->lock);
		CAM_DBG(CAM_ISP, "try to flush pending list");
		rc = __cam_isp_ctx_flush_req(ctx, &ctx->pending_req_list,
			flush_req);
		CAM_DBG(CAM_ISP, "try to flush wait list");
		rc = __cam_isp_ctx_flush_req(ctx, &ctx->wait_req_list,
			flush_req);