msm: camera: common: Send 0 rate to MMRM for src clocks
Send clock rate as 0 for src clocks to MMRM, when disabling the clock. This will help MMRM in peak overshoot computation. CRs-Fixed: 2841729 Change-Id: I048b530fb620f0e47e1596f31e2ca12ff43bb471 Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
110420ce29
commit
1b34b6460d
@@ -1289,6 +1289,13 @@ int cam_soc_util_clk_disable(struct cam_hw_soc_info *soc_info,
|
||||
"Dev %s clk %s Disabling Shared clk, set 0 rate",
|
||||
soc_info->dev_name, clk_name);
|
||||
cam_soc_util_clk_wrapper_set_clk_rate(clk_id, soc_info, clk, 0);
|
||||
} else if ((!skip_mmrm_set_rate) && (soc_info->src_clk_idx == clk_idx)) {
|
||||
CAM_DBG(CAM_UTIL,
|
||||
"Dev %s Disabling %s clk, set 0 rate", soc_info->dev_name, clk_name);
|
||||
cam_soc_util_set_rate_through_mmrm(
|
||||
soc_info->mmrm_handle,
|
||||
soc_info->is_nrt_dev,
|
||||
0, 0, 1);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user