Skip to content

Commit 28aa450

Browse files
Ansuelandersson
authored andcommitted
clk: qcom: gcc-ipq806x: add unusued flag for critical clock
Some clocks are used by other devices present on the SoC. For example the gsbi4_h_clk is used by RPM and is if disabled cause the RPM to reject any regulator change command. These clock should never be disabled. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com> Tested-by: Jonathan McDowell <noodles@earth.li> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Link: https://lore.kernel.org/r/20220226135235.10051-9-ansuelsmth@gmail.com
1 parent 512ea2e commit 28aa450

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

drivers/clk/qcom/gcc-ipq806x.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ static struct clk_rcg gsbi4_qup_src = {
798798
.parent_data = gcc_pxo_pll8,
799799
.num_parents = ARRAY_SIZE(gcc_pxo_pll8),
800800
.ops = &clk_rcg_ops,
801-
.flags = CLK_SET_PARENT_GATE,
801+
.flags = CLK_SET_PARENT_GATE | CLK_IGNORE_UNUSED,
802802
},
803803
},
804804
};
@@ -816,7 +816,7 @@ static struct clk_branch gsbi4_qup_clk = {
816816
},
817817
.num_parents = 1,
818818
.ops = &clk_branch_ops,
819-
.flags = CLK_SET_RATE_PARENT,
819+
.flags = CLK_SET_RATE_PARENT | CLK_IGNORE_UNUSED,
820820
},
821821
},
822822
};
@@ -900,7 +900,7 @@ static struct clk_rcg gsbi6_qup_src = {
900900
.parent_data = gcc_pxo_pll8,
901901
.num_parents = ARRAY_SIZE(gcc_pxo_pll8),
902902
.ops = &clk_rcg_ops,
903-
.flags = CLK_SET_PARENT_GATE,
903+
.flags = CLK_SET_PARENT_GATE | CLK_IGNORE_UNUSED,
904904
},
905905
},
906906
};
@@ -969,7 +969,7 @@ static struct clk_branch gsbi7_qup_clk = {
969969
},
970970
.num_parents = 1,
971971
.ops = &clk_branch_ops,
972-
.flags = CLK_SET_RATE_PARENT,
972+
.flags = CLK_SET_RATE_PARENT | CLK_IGNORE_UNUSED,
973973
},
974974
},
975975
};
@@ -1015,6 +1015,7 @@ static struct clk_branch gsbi4_h_clk = {
10151015
.hw.init = &(struct clk_init_data){
10161016
.name = "gsbi4_h_clk",
10171017
.ops = &clk_branch_ops,
1018+
.flags = CLK_IGNORE_UNUSED,
10181019
},
10191020
},
10201021
};

0 commit comments

Comments
 (0)