瀏覽代碼

msm: camera: sync: Update global synx property

Currently all synx handles need to be global. Update
synx create params accordingly.

CRs-Fixed: 3351015
Change-Id: I58d6f927b5a7c1508a34a64c916ca3c9fbb1de49
Signed-off-by: Karthik Anantha Ram <[email protected]>
Karthik Anantha Ram 2 年之前
父節點
當前提交
c8ee871fdf
共有 1 個文件被更改,包括 10 次插入14 次删除
  1. 10 14
      drivers/cam_sync/cam_sync_synx.c

+ 10 - 14
drivers/cam_sync/cam_sync_synx.c

@@ -248,10 +248,11 @@ static int __cam_synx_map_generic_flags_to_create(uint32_t generic_flags,
 		return -EINVAL;
 	}
 
-	if (CAM_GENERIC_FENCE_FLAG_IS_GLOBAL_SYNX_OBJ & generic_flags)
-		params->flags |= SYNX_CREATE_GLOBAL_FENCE;
-	else
-		params->flags |= SYNX_CREATE_LOCAL_FENCE;
+	/*
+	 * Create Global Always - remove after userspace optimizes and
+	 * determines when global Vs local is needed
+	 */
+	params->flags |= SYNX_CREATE_GLOBAL_FENCE;
 
 	return 0;
 }
@@ -264,10 +265,11 @@ static int __cam_synx_map_generic_flags_to_import(uint32_t generic_flags,
 		return -EINVAL;
 	}
 
-	if (CAM_GENERIC_FENCE_FLAG_IS_GLOBAL_SYNX_OBJ & generic_flags)
-		params->flags |= SYNX_IMPORT_GLOBAL_FENCE;
-	else
-		params->flags |= SYNX_IMPORT_LOCAL_FENCE;
+	/*
+	 * Create Global Always - remove after userspace optimizes and
+	 * determines when global Vs local is needed
+	 */
+	params->flags |= SYNX_IMPORT_GLOBAL_FENCE;
 
 	return 0;
 }
@@ -293,12 +295,6 @@ int cam_synx_obj_create(const char *name, uint32_t flags, uint32_t *synx_obj,
 		goto free_idx;
 	}
 
-	/*
-	 * Create Global Always - remove after userspace optimizes and
-	 * determines when global Vs local is needed
-	 */
-	params.flags |= SYNX_CREATE_GLOBAL_FENCE;
-
 	rc = synx_create(g_cam_synx_obj_dev->session_handle, &params);
 	if (rc) {
 		CAM_ERR(CAM_SYNX, "Failed to create synx obj");