فهرست منبع

Merge "msm: camera: isp: Handle Error Injection Framework HW-done data" into camera-kernel.lnx.7.0

Camera Software Integration 1 سال پیش
والد
کامیت
7d71631a64
1فایلهای تغییر یافته به همراه6 افزوده شده و 5 حذف شده
  1. 6 5
      drivers/cam_core/cam_context_utils.c

+ 6 - 5
drivers/cam_core/cam_context_utils.c

@@ -1,7 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-only
 /*
  * Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
- * Copyright (c) 2022-2023, Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2022-2024, Qualcomm Innovation Center, Inc. All rights reserved.
  */
 
 #include <linux/debugfs.h>
@@ -1874,16 +1874,17 @@ end:
 static int cam_context_apply_buf_done_err_injection(struct cam_context *ctx,
 	struct cam_common_evt_inject_data *inject_evt)
 {
-	struct cam_hw_done_event_data *buf_done_data = inject_evt->buf_done_data;
+	struct cam_hw_done_event_data buf_done_data = {0};
 	int rc;
 
-	buf_done_data->evt_param = inject_evt->evt_params->u.buf_err_evt.sync_error;
-	rc = cam_context_buf_done_from_hw(ctx, buf_done_data,
+	buf_done_data.request_id = inject_evt->evt_params->req_id;
+	buf_done_data.evt_param = inject_evt->evt_params->u.buf_err_evt.sync_error;
+	rc = cam_context_buf_done_from_hw(ctx, &buf_done_data,
 		CAM_CTX_EVT_ID_ERROR);
 	if (rc)
 		CAM_ERR(CAM_CTXT,
 			"Fail to apply buf done error injection with req id: %llu ctx id: %u rc: %d",
-			buf_done_data->request_id, ctx->ctx_id, rc);
+			buf_done_data.request_id, ctx->ctx_id, rc);
 
 	return rc;
 }