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 <vchinta@codeaurora.org>
This commit is contained in:
Venkat Chinta 2019-10-03 12:19:02 -07:00 коммит произвёл Gerrit - the friendly Code Review server
Родитель 422de0bbf4
Коммит 064d662a3c
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -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);