浏览代码

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 <[email protected]>
Venkat Chinta 5 年之前
父节点
当前提交
064d662a3c
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      drivers/cam_isp/cam_isp_context.c

+ 3 - 0
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);