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

Commit 4544e11e authored by Venkat Chinta's avatar Venkat Chinta
Browse files

msm: camera: isp: Check for epoch before applying



When there is a delay in offline ife workqueue scheduling
it is possible that two requests are applied back to back.
This could lead to requests lost. Therefore we must check
for epoch flag before applying any request.

CRs-Fixed: 2686281
Change-Id: I323710a61301d79e78db22dc1f66a6a0f141389a
Signed-off-by: default avatarVenkat Chinta <vchinta@codeaurora.org>
parent f458d8e1
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1108,7 +1108,9 @@ static int __cam_isp_ctx_apply_req_offline(
		goto end;
	}

	if (ctx->state != CAM_CTX_ACTIVATED)
	if ((ctx->state != CAM_CTX_ACTIVATED) ||
		(!atomic_read(&ctx_isp->rxd_epoch)) ||
		(ctx_isp->substate_activated == CAM_ISP_CTX_ACTIVATED_APPLIED))
		goto end;

	if (ctx_isp->active_req_cnt >= 2)