From 064d662a3cc352f7dfcf881d7b2ca276765d15a0 Mon Sep 17 00:00:00 2001 From: Venkat Chinta Date: Thu, 3 Oct 2019 12:19:02 -0700 Subject: [PATCH] msm: camera: isp: Update last applied request ID This change updates last applied request ID when init packets are applied and when stop ioctls are invoked. CRs-Fixed: 2539888 Change-Id: I113b7897740d6577a4757ce41f9fcb1fff8c56e9 Signed-off-by: Venkat Chinta --- drivers/cam_isp/cam_isp_context.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/cam_isp/cam_isp_context.c b/drivers/cam_isp/cam_isp_context.c index 67e6c7d05160..5698e73bbd32 100644 --- a/drivers/cam_isp/cam_isp_context.c +++ b/drivers/cam_isp/cam_isp_context.c @@ -3683,6 +3683,8 @@ static int __cam_isp_ctx_start_dev_in_ready(struct cam_context *ctx, start_isp.hw_config.init_packet = 1; start_isp.hw_config.reapply = 0; + ctx_isp->last_applied_req_id = req->request_id; + if (ctx->state == CAM_CTX_FLUSHED) start_isp.start_only = true; else @@ -3837,6 +3839,7 @@ static int __cam_isp_ctx_stop_dev_in_activated_unlock( ctx_isp->active_req_cnt = 0; ctx_isp->reported_req_id = 0; ctx_isp->bubble_frame_cnt = 0; + ctx_isp->last_applied_req_id = 0; atomic_set(&ctx_isp->process_bubble, 0); atomic64_set(&ctx_isp->state_monitor_head, -1);