Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f8c60957 authored by Venkat Chinta's avatar Venkat Chinta Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: isp: Add log in flush



This change adds a log in flush to indicate stop/restart HW complete.

CRs-Fixed: 2545140
Change-Id: I0068f239c5efeb536d60a9de27577d46bdc66edd
Signed-off-by: default avatarVenkat Chinta <vchinta@codeaurora.org>
parent 3619ae63
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -2163,6 +2163,7 @@ static int __cam_isp_ctx_flush_req_in_top_state(
			CAM_ERR(CAM_ISP, "Failed to stop HW in Flush rc: %d",
				rc);

		CAM_INFO(CAM_ISP, "Stop HW complete. Reset HW next.");
		CAM_DBG(CAM_ISP, "Flush wait and active lists");
		spin_lock_bh(&ctx->lock);
		if (!list_empty(&ctx->wait_req_list))
@@ -3553,12 +3554,13 @@ static int __cam_isp_ctx_config_dev_in_flushed(struct cam_context *ctx,

	if (!ctx_isp->hw_acquired) {
		CAM_ERR(CAM_ISP, "HW is not acquired, reject packet");
		return -EINVAL;
		rc = -EINVAL;
		goto end;
	}

	rc = __cam_isp_ctx_config_dev_in_top_state(ctx, cmd);
	if (rc)
		return rc;
		goto end;

	if (!ctx_isp->init_received) {
		CAM_WARN(CAM_ISP,
@@ -3574,7 +3576,7 @@ static int __cam_isp_ctx_config_dev_in_flushed(struct cam_context *ctx,
		&hw_cmd_args);
	if (rc) {
		CAM_ERR(CAM_ISP, "Failed to resume HW rc: %d", rc);
		return rc;
		goto end;
	}

	start_cmd.dev_handle = cmd->dev_handle;
@@ -3583,6 +3585,9 @@ static int __cam_isp_ctx_config_dev_in_flushed(struct cam_context *ctx,
	if (rc)
		CAM_ERR(CAM_ISP,
			"Failed to re-start HW after flush rc: %d", rc);
	else
		CAM_INFO(CAM_ISP,
			"Received init after flush. Re-start HW complete.");

end:
	CAM_DBG(CAM_ISP, "next state %d sub_state:%d", ctx->state,