From 3adf5ea68e610a1c1f37f428401d6da3d8ddac15 Mon Sep 17 00:00:00 2001 From: Vishalsingh Hajeri Date: Fri, 19 Jun 2020 11:59:21 -0700 Subject: [PATCH] msm: camera: isp: Add handle function for RUP in bubble When we wait on Bufdone for Bubble Request in Bubble state, We don't know whether the CDM is hung or Bufdone is delayed. This change prints more information for bubble request to ascertain CDM is in good state. CRs-Fixed: 2705745 Change-Id: I98215904b5665281808e775c97c6747a38eb1081 Signed-off-by: Vishalsingh Hajeri --- drivers/cam_isp/cam_isp_context.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/drivers/cam_isp/cam_isp_context.c b/drivers/cam_isp/cam_isp_context.c index 9d0db9845666..5d2c46aa6ab5 100644 --- a/drivers/cam_isp/cam_isp_context.c +++ b/drivers/cam_isp/cam_isp_context.c @@ -3463,6 +3463,21 @@ static int __cam_isp_ctx_rdi_only_sof_in_bubble_state( return 0; } + +static int __cam_isp_ctx_rdi_only_reg_upd_in_bubble_state( + struct cam_isp_context *ctx_isp, void *evt_data) +{ + struct cam_ctx_request *req = NULL; + struct cam_context *ctx = ctx_isp->base; + + req = list_first_entry(&ctx->active_req_list, + struct cam_ctx_request, list); + + CAM_INFO(CAM_ISP, "Received RUP for Bubble Request", req->request_id); + + return 0; +} + static int __cam_isp_ctx_rdi_only_reg_upd_in_bubble_applied_state( struct cam_isp_context *ctx_isp, void *evt_data) { @@ -3586,7 +3601,7 @@ static struct cam_isp_ctx_irq_ops .irq_ops = { __cam_isp_ctx_handle_error, __cam_isp_ctx_rdi_only_sof_in_bubble_state, - NULL, + __cam_isp_ctx_rdi_only_reg_upd_in_bubble_state, NULL, NULL, __cam_isp_ctx_buf_done_in_bubble,