mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
msm: camera: cpas: Set AHB clock rate only if a client is streamed on
Currently the ahb clock rate is set as part of cpas_start for a given client. In order to set this rate, any camera gdsc needs to be enabled. This change adds a check to allow setting the clk rate only if the gdsc regulator has been enabled to avoid NoC timeouts. CRs-Fixed: 2671048 Change-Id: I6551c8c648ae298dca97f0e35ba7c9ca83b5a2cd Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
This commit is contained in:
parent
d324acfbdb
commit
85ac759b1e
1 changed files with 8 additions and 5 deletions
|
|
@ -1030,12 +1030,15 @@ static int cam_cpas_util_apply_client_ahb_vote(struct cam_hw_info *cpas_hw,
|
|||
}
|
||||
}
|
||||
|
||||
rc = cam_soc_util_set_clk_rate_level(&cpas_hw->soc_info, highest_level);
|
||||
if (rc) {
|
||||
CAM_ERR(CAM_CPAS,
|
||||
"Failed in scaling clock rate level %d for AHB",
|
||||
if (cpas_core->streamon_clients) {
|
||||
rc = cam_soc_util_set_clk_rate_level(&cpas_hw->soc_info,
|
||||
highest_level);
|
||||
goto unlock_bus_client;
|
||||
if (rc) {
|
||||
CAM_ERR(CAM_CPAS,
|
||||
"Failed in scaling clock rate level %d for AHB",
|
||||
highest_level);
|
||||
goto unlock_bus_client;
|
||||
}
|
||||
}
|
||||
|
||||
if (applied_level)
|
||||
|
|
|
|||
Loading…
Reference in a new issue