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

Commit 4b76edff authored by Alok Chauhan's avatar Alok Chauhan
Browse files

msm: camera: icp: allow icp debug clock for debug purpose



Max support clock frequency varies from target to target.
Do not restrict the debug icp clock with max supported clock
and allow it to set with any value.

CRs-Fixed: 2878329
Change-Id: Ia157d38c4aa4b1183650bf6ff47f3181fb8012cd
Signed-off-by: default avatarAlok Chauhan <alokc@codeaurora.org>
parent 51f76262
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
 * Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
 */

#include <linux/uaccess.h>
@@ -1062,8 +1062,7 @@ static bool cam_icp_update_clk_free(struct cam_icp_hw_mgr *hw_mgr,

static bool cam_icp_debug_clk_update(struct cam_icp_clk_info *hw_mgr_clk_info)
{
	if (icp_hw_mgr.icp_debug_clk < ICP_CLK_TURBO_HZ &&
		icp_hw_mgr.icp_debug_clk &&
	if (icp_hw_mgr.icp_debug_clk &&
		icp_hw_mgr.icp_debug_clk != hw_mgr_clk_info->curr_clk) {
		hw_mgr_clk_info->base_clk = icp_hw_mgr.icp_debug_clk;
		hw_mgr_clk_info->curr_clk = icp_hw_mgr.icp_debug_clk;