msm: camera: sync: Rearrange sync reason events

Rearrange sync error reason code for better code
readability.

CRs-Fixed: 2750553
Change-Id: Ia64694155921c074946167763815a87beb856b35
Signed-off-by: Alok Chauhan <alokc@codeaurora.org>
This commit is contained in:
Alok Chauhan
2020-08-19 00:40:28 +05:30
parent 642825a2eb
commit baf2d520ed
7 changed files with 28 additions and 31 deletions

View File

@@ -183,7 +183,7 @@ static int __cam_custom_ctx_frame_done(
rc = cam_sync_signal(req_custom->fence_map_out[j].sync_id,
CAM_SYNC_STATE_SIGNALED_SUCCESS,
CAM_SYNC_EVENT_SUCCESS);
CAM_SYNC_COMMON_EVENT_SUCCESS);
if (rc)
CAM_ERR(CAM_CUSTOM, "Sync failed with rc = %d", rc);
@@ -370,7 +370,7 @@ static int __cam_custom_ctx_flush_req(struct cam_context *ctx,
rc = cam_sync_signal(
req_custom->fence_map_out[i].sync_id,
CAM_SYNC_STATE_SIGNALED_CANCEL,
CAM_SYNC_EVENT_FLUSH);
CAM_SYNC_COMMON_EVENT_FLUSH);
if (rc)
CAM_ERR_RATE_LIMIT(CAM_CUSTOM,
"signal fence failed\n");
@@ -546,7 +546,7 @@ static int __cam_custom_stop_dev_core(
cam_sync_signal(
req_custom->fence_map_out[i].sync_id,
CAM_SYNC_STATE_SIGNALED_CANCEL,
CAM_SYNC_EVENT_STOP);
CAM_SYNC_COMMON_EVENT_STOP);
}
list_add_tail(&req->list, &ctx->free_req_list);
}
@@ -563,7 +563,7 @@ static int __cam_custom_stop_dev_core(
cam_sync_signal(
req_custom->fence_map_out[i].sync_id,
CAM_SYNC_STATE_SIGNALED_CANCEL,
CAM_SYNC_EVENT_STOP);
CAM_SYNC_COMMON_EVENT_STOP);
}
list_add_tail(&req->list, &ctx->free_req_list);
}
@@ -580,7 +580,7 @@ static int __cam_custom_stop_dev_core(
cam_sync_signal(
req_custom->fence_map_out[i].sync_id,
CAM_SYNC_STATE_SIGNALED_CANCEL,
CAM_SYNC_EVENT_STOP);
CAM_SYNC_COMMON_EVENT_STOP);
}
list_add_tail(&req->list, &ctx->free_req_list);
}