Bläddra i källkod

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 <[email protected]>
Vishalsingh Hajeri 5 år sedan
förälder
incheckning
3adf5ea68e
1 ändrade filer med 16 tillägg och 1 borttagningar
  1. 16 1
      drivers/cam_isp/cam_isp_context.c

+ 16 - 1
drivers/cam_isp/cam_isp_context.c

@@ -3463,6 +3463,21 @@ static int __cam_isp_ctx_rdi_only_sof_in_bubble_state(
 	return 0;
 	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(
 static int __cam_isp_ctx_rdi_only_reg_upd_in_bubble_applied_state(
 	struct cam_isp_context *ctx_isp, void *evt_data)
 	struct cam_isp_context *ctx_isp, void *evt_data)
 {
 {
@@ -3586,7 +3601,7 @@ static struct cam_isp_ctx_irq_ops
 		.irq_ops = {
 		.irq_ops = {
 			__cam_isp_ctx_handle_error,
 			__cam_isp_ctx_handle_error,
 			__cam_isp_ctx_rdi_only_sof_in_bubble_state,
 			__cam_isp_ctx_rdi_only_sof_in_bubble_state,
-			NULL,
+			__cam_isp_ctx_rdi_only_reg_upd_in_bubble_state,
 			NULL,
 			NULL,
 			NULL,
 			NULL,
 			__cam_isp_ctx_buf_done_in_bubble,
 			__cam_isp_ctx_buf_done_in_bubble,