瀏覽代碼

msm: camera: core: Change return type

Return different error number when new requests and update
packets are rejected due to bad request ID. This allows
userspace to differentiate this specific reason for failure.

CRs-Fixed: 2518451
Change-Id: I0400c6f2b2e0baf99bee4b4a3736bb1eab646627
Signed-off-by: Venkat Chinta <[email protected]>
Venkat Chinta 5 年之前
父節點
當前提交
8c91109b74
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      drivers/cam_isp/cam_isp_context.c
  2. 1 1
      drivers/cam_req_mgr/cam_req_mgr_core.c

+ 1 - 1
drivers/cam_isp/cam_isp_context.c

@@ -2920,7 +2920,7 @@ static int __cam_isp_ctx_config_dev_in_top_state(
 		CAM_INFO(CAM_ISP,
 			"request %lld has been flushed, reject packet",
 			packet->header.request_id);
-		rc = -EINVAL;
+		rc = -EBADR;
 		goto free_req;
 	}
 

+ 1 - 1
drivers/cam_req_mgr/cam_req_mgr_core.c

@@ -3209,7 +3209,7 @@ int cam_req_mgr_schedule_request(
 		CAM_INFO(CAM_CRM,
 			"request %lld is flushed, last_flush_id to flush %d",
 			sched_req->req_id, link->last_flush_id);
-		rc = -EINVAL;
+		rc = -EBADR;
 		goto end;
 	}