From 26ef750076c4bb3224318b48404b4bc77a32df5c Mon Sep 17 00:00:00 2001 From: Karthik Anantha Ram Date: Wed, 13 May 2020 14:38:59 -0700 Subject: [PATCH] msm: camera: isp: Update last reported request ID correctly The last reported request ID indicates the request ID for which the shutter was sent last. Only update this field for requests that have not bubbled in a given IFE ctx. CRs-Fixed: 2680502 Change-Id: I9ee4b479fe95800efa40ea1ff8d840fc79ef6528 Signed-off-by: Karthik Anantha Ram --- drivers/cam_isp/cam_isp_context.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/cam_isp/cam_isp_context.c b/drivers/cam_isp/cam_isp_context.c index 7fd06d214c9e..13cd4ae74d94 100644 --- a/drivers/cam_isp/cam_isp_context.c +++ b/drivers/cam_isp/cam_isp_context.c @@ -1364,7 +1364,9 @@ static int __cam_isp_ctx_notify_sof_in_activated_state( } list_for_each_entry(req, &ctx->active_req_list, list) { - if (req->request_id > ctx_isp->reported_req_id) { + req_isp = (struct cam_isp_ctx_req *) req->req_priv; + if ((!req_isp->bubble_detected) && + (req->request_id > ctx_isp->reported_req_id)) { request_id = req->request_id; ctx_isp->reported_req_id = request_id; __cam_isp_ctx_update_event_record(ctx_isp,