mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 06:08:08 +00:00
cd619eeff2
Replace gcc patch fixes with upstream version. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
66 lines
2.0 KiB
Diff
66 lines
2.0 KiB
Diff
From 28aa450d38e521de45be951df052d2c49a17fae2 Mon Sep 17 00:00:00 2001
|
|
From: Ansuel Smith <ansuelsmth@gmail.com>
|
|
Date: Sat, 26 Feb 2022 14:52:28 +0100
|
|
Subject: [PATCH 08/14] 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
|
|
---
|
|
drivers/clk/qcom/gcc-ipq806x.c | 9 +++++----
|
|
1 file changed, 5 insertions(+), 4 deletions(-)
|
|
|
|
--- a/drivers/clk/qcom/gcc-ipq806x.c
|
|
+++ b/drivers/clk/qcom/gcc-ipq806x.c
|
|
@@ -798,7 +798,7 @@ static struct clk_rcg gsbi4_qup_src = {
|
|
.parent_data = gcc_pxo_pll8,
|
|
.num_parents = ARRAY_SIZE(gcc_pxo_pll8),
|
|
.ops = &clk_rcg_ops,
|
|
- .flags = CLK_SET_PARENT_GATE,
|
|
+ .flags = CLK_SET_PARENT_GATE | CLK_IGNORE_UNUSED,
|
|
},
|
|
},
|
|
};
|
|
@@ -816,7 +816,7 @@ static struct clk_branch gsbi4_qup_clk =
|
|
},
|
|
.num_parents = 1,
|
|
.ops = &clk_branch_ops,
|
|
- .flags = CLK_SET_RATE_PARENT,
|
|
+ .flags = CLK_SET_RATE_PARENT | CLK_IGNORE_UNUSED,
|
|
},
|
|
},
|
|
};
|
|
@@ -900,7 +900,7 @@ static struct clk_rcg gsbi6_qup_src = {
|
|
.parent_data = gcc_pxo_pll8,
|
|
.num_parents = ARRAY_SIZE(gcc_pxo_pll8),
|
|
.ops = &clk_rcg_ops,
|
|
- .flags = CLK_SET_PARENT_GATE,
|
|
+ .flags = CLK_SET_PARENT_GATE | CLK_IGNORE_UNUSED,
|
|
},
|
|
},
|
|
};
|
|
@@ -969,7 +969,7 @@ static struct clk_branch gsbi7_qup_clk =
|
|
},
|
|
.num_parents = 1,
|
|
.ops = &clk_branch_ops,
|
|
- .flags = CLK_SET_RATE_PARENT,
|
|
+ .flags = CLK_SET_RATE_PARENT | CLK_IGNORE_UNUSED,
|
|
},
|
|
},
|
|
};
|
|
@@ -1015,6 +1015,7 @@ static struct clk_branch gsbi4_h_clk = {
|
|
.hw.init = &(struct clk_init_data){
|
|
.name = "gsbi4_h_clk",
|
|
.ops = &clk_branch_ops,
|
|
+ .flags = CLK_IGNORE_UNUSED,
|
|
},
|
|
},
|
|
};
|