mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
clk: qcom: lahaina: Fix stuck-off warnings during probe
When clocks are registered with the framework during probe, clk_core_hold_state() will call clk_core_prepare_enable() for clocks already enabled in HW from bootloaders. Some clocks are failing to actually turn on when this is called, which results in noisy warnings printed to the kernel log. These specific GPU clocks are failing to turn on because the required GDSC isn't enabled yet. However, this isn't a functional issue since GPU isn't actually being used yet. Since these clocks aren't shared across multiple client devices, there's no need for the framework to issue a proxy vote during registration. Thus, set the CLK_DONT_HOLD_STATE flag for these to skip the clk_core_prepare_enable() during registration. Change-Id: I4679de06fa903ab68e574b0be3419cdb47a16375 Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
This commit is contained in:
parent
9a643a2168
commit
0fec3ee373
2 changed files with 3 additions and 0 deletions
|
|
@ -2308,6 +2308,7 @@ static struct clk_branch gcc_gpu_memnoc_gfx_clk = {
|
|||
.enable_mask = BIT(0),
|
||||
.hw.init = &(struct clk_init_data){
|
||||
.name = "gcc_gpu_memnoc_gfx_clk",
|
||||
.flags = CLK_DONT_HOLD_STATE,
|
||||
.ops = &clk_branch2_aon_ops,
|
||||
},
|
||||
},
|
||||
|
|
@ -2321,6 +2322,7 @@ static struct clk_branch gcc_gpu_snoc_dvm_gfx_clk = {
|
|||
.enable_mask = BIT(0),
|
||||
.hw.init = &(struct clk_init_data){
|
||||
.name = "gcc_gpu_snoc_dvm_gfx_clk",
|
||||
.flags = CLK_DONT_HOLD_STATE,
|
||||
.ops = &clk_branch2_aon_ops,
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -390,6 +390,7 @@ static struct clk_branch gpu_cc_cxo_clk = {
|
|||
.enable_mask = BIT(0),
|
||||
.hw.init = &(struct clk_init_data){
|
||||
.name = "gpu_cc_cxo_clk",
|
||||
.flags = CLK_DONT_HOLD_STATE,
|
||||
.ops = &clk_branch2_ops,
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue