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

Commit f1e30d21 authored by Karthik Anantha Ram's avatar Karthik Anantha Ram
Browse files

msm: camera: isp: Add go_cmd after rup_cmd for offline use-cases



Add go_cmd after rup_cmd in cdm packet so that bus_rd is triggered
after rup has been configured for IFE.

CRs-Fixed: 2767783
Change-Id: I8978d582825bc0e4edc9f26a1d3f8f988bc11b81
Signed-off-by: default avatarKarthik Anantha Ram <kartanan@codeaurora.org>
parent 27124710
Loading
Loading
Loading
Loading
+11 −11
Original line number Diff line number Diff line
@@ -6355,17 +6355,6 @@ static int cam_ife_mgr_prepare_hw_update(void *hw_mgr_priv,
		}
	}

	/* add go_cmd for offline context */
	if (prepare->num_out_map_entries && prepare->num_in_map_entries &&
		ctx->is_offline) {
		rc = cam_isp_add_go_cmd(prepare, &ctx->res_list_ife_in_rd,
			ctx->base[i].idx, &kmd_buf);
		if (rc)
			CAM_ERR(CAM_ISP,
				"Add GO_CMD faled i: %d, idx: %d, rc: %d",
				i, ctx->base[i].idx, rc);
	}

	/*
	 * reg update will be done later for the initial configure.
	 * need to plus one to the op_code and only take the lower
@@ -6437,6 +6426,17 @@ static int cam_ife_mgr_prepare_hw_update(void *hw_mgr_priv,
		}
	}

	/* add go_cmd for offline context */
	if (prepare->num_out_map_entries && prepare->num_in_map_entries &&
		ctx->is_offline) {
		rc = cam_isp_add_go_cmd(prepare, &ctx->res_list_ife_in_rd,
			ctx->base[i].idx, &kmd_buf);
		if (rc)
			CAM_ERR(CAM_ISP,
				"Add GO_CMD faled i: %d, idx: %d, rc: %d",
				i, ctx->base[i].idx, rc);
	}

end:
	return rc;
}