mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-06-17 08:55:29 +08:00

Manually rebased: bcm27xx/patches-5.15/950-0600-xhci-quirks-add-link-TRB-quirk-for-VL805.patch bcm27xx/patches-5.15/950-0606-usb-xhci-add-VLI_TRB_CACHE_BUG-quirk.patch bcm27xx/patches-5.15/950-0717-usb-xhci-add-a-quirk-for-Superspeed-bulk-OUT-transfe.patch bcm53xx/patches-5.15/180-usb-xhci-add-support-for-performing-fake-doorbell.patch lantiq/patches-5.15/0028-NET-lantiq-various-etop-fixes.patch All other patches automatically rebased Co-authored-by: John Audia <therealgraysky@proton.me> Signed-off-by: John Audia <therealgraysky@proton.me>
148 lines
4.6 KiB
Diff
148 lines
4.6 KiB
Diff
From a9179aeead3fe0737b47d11ef687edc2dc15c964 Mon Sep 17 00:00:00 2001
|
|
From: Kathiravan T <kathirav@codeaurora.org>
|
|
Date: Fri, 6 Nov 2020 12:18:37 +0530
|
|
Subject: [PATCH 1003/1011] clk: qcom: ipq6018: add missing clock flags
|
|
|
|
The downstream QCA 5.4 kernel sets several extra clock flags. From
|
|
their reasoning:
|
|
|
|
Add the CLK_IS_CRITICAL, CLK_RCG2_HW_CONTROLLED for the required clocks.
|
|
|
|
Without the critical flag, below warning is seen when QDSS
|
|
components are enabled.
|
|
|
|
[ 1.712722] ------------[ cut here ]------------
|
|
[ 1.719039] gcc_qdss_dap_clk status stuck at 'on'
|
|
[ 1.719084] WARNING: CPU: 1 PID: 1 at drivers/clk/qcom/clk-branch.c:92 clk_branch_toggle+0x160/0x178
|
|
|
|
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
|
|
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
|
|
---
|
|
drivers/clk/qcom/gcc-ipq6018.c | 19 +++++++++++++++----
|
|
1 file changed, 15 insertions(+), 4 deletions(-)
|
|
|
|
--- a/drivers/clk/qcom/gcc-ipq6018.c
|
|
+++ b/drivers/clk/qcom/gcc-ipq6018.c
|
|
@@ -62,6 +62,7 @@ static struct clk_alpha_pll gpll0_main =
|
|
},
|
|
.num_parents = 1,
|
|
.ops = &clk_alpha_pll_ops,
|
|
+ .flags = CLK_IS_CRITICAL,
|
|
},
|
|
},
|
|
};
|
|
@@ -150,6 +151,7 @@ static struct clk_alpha_pll gpll6_main =
|
|
},
|
|
.num_parents = 1,
|
|
.ops = &clk_alpha_pll_ops,
|
|
+ .flags = CLK_IS_CRITICAL,
|
|
},
|
|
},
|
|
};
|
|
@@ -181,6 +183,7 @@ static struct clk_alpha_pll gpll4_main =
|
|
},
|
|
.num_parents = 1,
|
|
.ops = &clk_alpha_pll_ops,
|
|
+ .flags = CLK_IS_CRITICAL,
|
|
},
|
|
},
|
|
};
|
|
@@ -211,6 +214,7 @@ static struct clk_rcg2 pcnoc_bfdcd_clk_s
|
|
.freq_tbl = ftbl_pcnoc_bfdcd_clk_src,
|
|
.hid_width = 5,
|
|
.parent_map = gcc_xo_gpll0_gpll0_out_main_div2_map,
|
|
+ .flags = CLK_RCG2_HW_CONTROLLED,
|
|
.clkr.hw.init = &(struct clk_init_data){
|
|
.name = "pcnoc_bfdcd_clk_src",
|
|
.parent_data = gcc_xo_gpll0_gpll0_out_main_div2,
|
|
@@ -232,6 +236,7 @@ static struct clk_alpha_pll gpll2_main =
|
|
},
|
|
.num_parents = 1,
|
|
.ops = &clk_alpha_pll_ops,
|
|
+ .flags = CLK_IS_CRITICAL,
|
|
},
|
|
},
|
|
};
|
|
@@ -456,6 +461,7 @@ static struct clk_branch gcc_sleep_clk_s
|
|
},
|
|
.num_parents = 1,
|
|
.ops = &clk_branch2_ops,
|
|
+ .flags = CLK_IS_CRITICAL,
|
|
},
|
|
},
|
|
};
|
|
@@ -960,6 +966,7 @@ static struct clk_rcg2 nss_crypto_clk_sr
|
|
.mnd_width = 16,
|
|
.hid_width = 5,
|
|
.parent_map = gcc_xo_nss_crypto_pll_gpll0_map,
|
|
+ .flags = CLK_RCG2_HW_CONTROLLED,
|
|
.clkr.hw.init = &(struct clk_init_data){
|
|
.name = "nss_crypto_clk_src",
|
|
.parent_data = gcc_xo_nss_crypto_pll_gpll0,
|
|
@@ -1131,6 +1138,7 @@ static struct clk_rcg2 nss_ubi0_clk_src
|
|
.freq_tbl = ftbl_nss_ubi_clk_src,
|
|
.hid_width = 5,
|
|
.parent_map = gcc_xo_ubi32_gpll0_gpll2_gpll4_gpll6_map,
|
|
+ .flags = CLK_RCG2_HW_CONTROLLED,
|
|
.clkr.hw.init = &(struct clk_init_data){
|
|
.name = "nss_ubi0_clk_src",
|
|
.parent_data = gcc_xo_ubi32_pll_gpll0_gpll2_gpll4_gpll6,
|
|
@@ -1869,7 +1877,7 @@ static struct clk_branch gcc_apss_ahb_cl
|
|
.parent_hws = (const struct clk_hw *[]){
|
|
&apss_ahb_postdiv_clk_src.clkr.hw },
|
|
.num_parents = 1,
|
|
- .flags = CLK_SET_RATE_PARENT,
|
|
+ .flags = CLK_SET_RATE_PARENT | CLK_IS_CRITICAL,
|
|
.ops = &clk_branch2_ops,
|
|
},
|
|
},
|
|
@@ -1891,11 +1899,13 @@ static struct clk_rcg2 system_noc_bfdcd_
|
|
.freq_tbl = ftbl_system_noc_bfdcd_clk_src,
|
|
.hid_width = 5,
|
|
.parent_map = gcc_xo_gpll0_gpll6_gpll0_out_main_div2_map,
|
|
+ .flags = CLK_RCG2_HW_CONTROLLED,
|
|
.clkr.hw.init = &(struct clk_init_data){
|
|
.name = "system_noc_bfdcd_clk_src",
|
|
.parent_data = gcc_xo_gpll0_gpll6_gpll0_out_main_div2,
|
|
.num_parents = 4,
|
|
.ops = &clk_rcg2_ops,
|
|
+ .flags = CLK_IS_CRITICAL,
|
|
},
|
|
};
|
|
|
|
@@ -1945,7 +1955,7 @@ static struct clk_branch gcc_apss_axi_cl
|
|
.parent_hws = (const struct clk_hw *[]){
|
|
&apss_axi_clk_src.clkr.hw },
|
|
.num_parents = 1,
|
|
- .flags = CLK_SET_RATE_PARENT,
|
|
+ .flags = CLK_SET_RATE_PARENT | CLK_IS_CRITICAL,
|
|
.ops = &clk_branch2_ops,
|
|
},
|
|
},
|
|
@@ -2314,7 +2324,7 @@ static struct clk_branch gcc_xo_clk = {
|
|
.parent_hws = (const struct clk_hw *[]){
|
|
&gcc_xo_clk_src.clkr.hw },
|
|
.num_parents = 1,
|
|
- .flags = CLK_SET_RATE_PARENT,
|
|
+ .flags = CLK_SET_RATE_PARENT | CLK_IS_CRITICAL,
|
|
.ops = &clk_branch2_ops,
|
|
},
|
|
},
|
|
@@ -3163,6 +3173,7 @@ static struct clk_branch gcc_nssnoc_ppe_
|
|
.name = "gcc_nssnoc_ppe_cfg_clk",
|
|
.parent_hws = (const struct clk_hw *[]){
|
|
&nss_ppe_clk_src.clkr.hw },
|
|
+ .num_parents = 1,
|
|
.flags = CLK_SET_RATE_PARENT,
|
|
.ops = &clk_branch2_ops,
|
|
},
|
|
@@ -3521,7 +3532,7 @@ static struct clk_branch gcc_qdss_dap_cl
|
|
.parent_hws = (const struct clk_hw *[]){
|
|
&qdss_dap_sync_clk_src.hw },
|
|
.num_parents = 1,
|
|
- .flags = CLK_SET_RATE_PARENT,
|
|
+ .flags = CLK_SET_RATE_PARENT | CLK_IS_CRITICAL,
|
|
.ops = &clk_branch2_ops,
|
|
},
|
|
},
|