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

Commit 73f0430a authored by Tony Lijo Jose's avatar Tony Lijo Jose Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: cci: Return failure if cpas start fails



We are reading from cci hw version register even if the cci cpas start
fails, this will lead to a NOC error; To avoid this we need to return
with failure if the cpas start fails.

CRs-Fixed: 2683494
Change-Id: Id8c214ed480dc3286414edffc59515606c4133cd
Signed-off-by: default avatarTony Lijo Jose <tjose@codeaurora.org>
parent ffef61ea
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
 */

#include "cam_cci_dev.h"
@@ -89,8 +89,11 @@ int cam_cci_init(struct v4l2_subdev *sd,

	rc = cam_cpas_start(cci_dev->cpas_handle,
		&ahb_vote, &axi_vote);
	if (rc != 0)
	if (rc) {
		CAM_ERR(CAM_CCI, "CPAS start failed");
		cci_dev->ref_count--;
		return rc;
	}

	cam_cci_get_clk_rates(cci_dev, c_ctrl);