mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
Merge "msm: camera: icp: allow icp debug clock for debug purpose" into camera-kernel.lnx.4.0
This commit is contained in:
commit
c48130dff1
1 changed files with 2 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
|||
// 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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue