From 758e751074b035bc53a720840613a3b0f301e469 Mon Sep 17 00:00:00 2001 From: Venkat Chinta Date: Fri, 10 Apr 2020 13:53:34 -0700 Subject: [PATCH] msm: camera: isp: Remove request ID in bubble sof notification This change removes valid request ID from sof notification when bubble is detected. The sof notification for this request will be sent after the state machine moves out of bubble applied state. This is to avoid duplication of timestamps in case of bubble due to IRQ delays. CRs-Fixed: 2671273 Change-Id: I5334fab41ae5bce8a42e421747b35f9bfd32aff3 Signed-off-by: Venkat Chinta --- drivers/cam_isp/cam_isp_context.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/cam_isp/cam_isp_context.c b/drivers/cam_isp/cam_isp_context.c index 32ab5c7977a9..7fd06d214c9e 100644 --- a/drivers/cam_isp/cam_isp_context.c +++ b/drivers/cam_isp/cam_isp_context.c @@ -1589,7 +1589,8 @@ static int __cam_isp_ctx_epoch_in_applied(struct cam_isp_context *ctx_isp, CAM_DBG(CAM_REQ, "move request %lld to active list(cnt = %d), ctx %u", req->request_id, ctx_isp->active_req_cnt, ctx->ctx_id); - if (req->request_id > ctx_isp->reported_req_id) { + if ((req->request_id > ctx_isp->reported_req_id) + && !req_isp->bubble_report) { request_id = req->request_id; ctx_isp->reported_req_id = request_id; }