Skip to content

Commit

Permalink
clk: qcom: gcc-msm8953: fix stuck gcc_usb30_master_clk
Browse files Browse the repository at this point in the history
According to downstream dwc3-msm source this clock has FSM dependency on
gcc_pcnoc_usb30_clk so enabling it would fail if latter isn't enabled.
This patch add works around this issue by changing parent of
gcc_usb30_master_clk to gcc_pcnoc_usb30_clk. This is acceptable because
both clocks have same parent and are branches/gates.

Signed-off-by: Barnabás Czémán <[email protected]>
  • Loading branch information
barni2000 authored and vldly committed Oct 10, 2023
1 parent fb6855c commit ba76454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/clk/qcom/gcc-msm8953.c
Original file line number Diff line number Diff line change
Expand Up @@ -3646,7 +3646,7 @@ static struct clk_branch gcc_usb30_master_clk = {
.hw.init = &(struct clk_init_data) {
.name = "gcc_usb30_master_clk",
.parent_hws = (const struct clk_hw*[]){
&usb30_master_clk_src.clkr.hw,
&gcc_pcnoc_usb3_axi_clk.clkr.hw,
},
.num_parents = 1,
.ops = &clk_branch2_ops,
Expand Down

0 comments on commit ba76454

Please sign in to comment.