From dd8b69b832c77733b7ee73c1fde2bb2ab864ea86 Mon Sep 17 00:00:00 2001 From: Depeng Shao Date: Mon, 26 Apr 2021 13:44:16 +0800 Subject: [PATCH] msm: camera: isp: Update the reported_req_id correctly The request id is updated to 0 when the substate is BUBBLE, then the original request id can't be notified to UMD, since the reported_req_id is already updated to the original request id. This change updateds the reported_req_id only when the final request id is valid. CRs-Fixed: 2932602 Change-Id: Ib30f849782283c647f784cfb0deb49bee3d04287 Signed-off-by: Depeng Shao --- 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 f7a95795744b..c6b227fdd6d3 100644 --- a/drivers/cam_isp/cam_isp_context.c +++ b/drivers/cam_isp/cam_isp_context.c @@ -1863,7 +1863,6 @@ notify_only: 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, CAM_ISP_CTX_EVENT_EPOCH, req); break; @@ -1873,6 +1872,9 @@ notify_only: if (ctx_isp->substate_activated == CAM_ISP_CTX_ACTIVATED_BUBBLE) request_id = 0; + if (request_id != 0) + ctx_isp->reported_req_id = request_id; + __cam_isp_ctx_send_sof_timestamp(ctx_isp, request_id, CAM_REQ_MGR_SOF_EVENT_SUCCESS);